Spaces:
Running
Running
Update simple_app.py
Browse files- simple_app.py +2 -2
simple_app.py
CHANGED
|
@@ -17,7 +17,7 @@ def infer(prompt, progress=gr.Progress(track_tqdm=True)):
|
|
| 17 |
relevant_steps = total_process_steps - irrelevant_steps # 7 steps
|
| 18 |
|
| 19 |
# Create the overall progress bar for the process steps.
|
| 20 |
-
overall_bar = tqdm(total=relevant_steps, desc="Overall Process", position=1,
|
| 21 |
processed_steps = 0
|
| 22 |
|
| 23 |
# Regex for detecting video generation progress lines (e.g., "10%|...| 5/50")
|
|
@@ -72,7 +72,7 @@ def infer(prompt, progress=gr.Progress(track_tqdm=True)):
|
|
| 72 |
processed_steps += 1
|
| 73 |
else:
|
| 74 |
# Create a sub-progress bar with a total of 1 for this step.
|
| 75 |
-
sub_bar = tqdm(total=1, desc=msg, position=
|
| 76 |
sub_bar.update(1)
|
| 77 |
sub_bar.close()
|
| 78 |
|
|
|
|
| 17 |
relevant_steps = total_process_steps - irrelevant_steps # 7 steps
|
| 18 |
|
| 19 |
# Create the overall progress bar for the process steps.
|
| 20 |
+
overall_bar = tqdm(total=relevant_steps, desc="Overall Process", position=1, dynamic_ncols=True, leave=True)
|
| 21 |
processed_steps = 0
|
| 22 |
|
| 23 |
# Regex for detecting video generation progress lines (e.g., "10%|...| 5/50")
|
|
|
|
| 72 |
processed_steps += 1
|
| 73 |
else:
|
| 74 |
# Create a sub-progress bar with a total of 1 for this step.
|
| 75 |
+
sub_bar = tqdm(total=1, desc=msg, position=0, dynamic_ncols=True, leave=True)
|
| 76 |
sub_bar.update(1)
|
| 77 |
sub_bar.close()
|
| 78 |
|