Hansheng Chen commited on
Commit
0e6e82a
·
1 Parent(s): f24a89a

Add progress bars for Gradio demos

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -32,7 +32,9 @@ pipe = pipe.to('cuda')
32
 
33
 
34
  @spaces.GPU
35
- def generate(seed, prompt, width, height, steps):
 
 
36
  return pipe(
37
  prompt=prompt,
38
  width=width,
 
32
 
33
 
34
  @spaces.GPU
35
+ def generate(
36
+ seed, prompt, width, height, steps,
37
+ progress=gr.Progress(track_tqdm=True)):
38
  return pipe(
39
  prompt=prompt,
40
  width=width,