leowajda commited on
Commit
cd666af
·
1 Parent(s): 37a7d5e

add support for progress bar

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -97,6 +97,7 @@ def call_model(
97
  ema: bool = True,
98
  steps: int = 1_000,
99
  num_images: int = 0,
 
100
  ):
101
  diffusion_model = linear_diffusion_model if model_to_call.lower() == "linear" else cosine_diffusion_model
102
  return diffusion_model.generate_images(
 
97
  ema: bool = True,
98
  steps: int = 1_000,
99
  num_images: int = 0,
100
+ progress=gr.Progress(track_tqdm=True),
101
  ):
102
  diffusion_model = linear_diffusion_model if model_to_call.lower() == "linear" else cosine_diffusion_model
103
  return diffusion_model.generate_images(