Spaces:
Running
on
Zero
Running
on
Zero
required minutes added
Browse files
app.py
CHANGED
|
@@ -508,8 +508,9 @@ def update_generate_button(image_path, audio_path, text, num_steps):
|
|
| 508 |
return gr.update(value="⌚ Zero GPU Required: --")
|
| 509 |
|
| 510 |
duration_s = get_duration(image_path, audio_path, text, num_steps, None, None)
|
| 511 |
-
|
| 512 |
-
|
|
|
|
| 513 |
|
| 514 |
def get_duration(image_path, audio_path, text, num_steps, session_id, progress):
|
| 515 |
|
|
|
|
| 508 |
return gr.update(value="⌚ Zero GPU Required: --")
|
| 509 |
|
| 510 |
duration_s = get_duration(image_path, audio_path, text, num_steps, None, None)
|
| 511 |
+
duration_m = duration_s / 60
|
| 512 |
+
|
| 513 |
+
return gr.update(value=f"⌚ Zero GPU Required: ~{duration_s}.0s ({duration_m:.1f} mins)")
|
| 514 |
|
| 515 |
def get_duration(image_path, audio_path, text, num_steps, session_id, progress):
|
| 516 |
|