Spaces:
Paused
Paused
add support for progress bar
Browse files
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(
|