Add progress bar
Browse files- edit_app.py +1 -0
edit_app.py
CHANGED
|
@@ -83,6 +83,7 @@ def generate(
|
|
| 83 |
randomize_cfg: bool,
|
| 84 |
text_cfg_scale: float,
|
| 85 |
image_cfg_scale: float,
|
|
|
|
| 86 |
):
|
| 87 |
seed = random.randint(0, 100000) if randomize_seed else seed
|
| 88 |
text_cfg_scale = round(random.uniform(6.0, 9.0), ndigits=2) if randomize_cfg else text_cfg_scale
|
|
|
|
| 83 |
randomize_cfg: bool,
|
| 84 |
text_cfg_scale: float,
|
| 85 |
image_cfg_scale: float,
|
| 86 |
+
progress=gr.Progress(track_tqdm=True),
|
| 87 |
):
|
| 88 |
seed = random.randint(0, 100000) if randomize_seed else seed
|
| 89 |
text_cfg_scale = round(random.uniform(6.0, 9.0), ndigits=2) if randomize_cfg else text_cfg_scale
|