Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,15 @@ def handle_image_upload(image):
|
|
| 88 |
|
| 89 |
return gr.update(value=best_size)
|
| 90 |
|
| 91 |
-
def get_duration(image,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
"""Calculate dynamic GPU duration based on parameters."""
|
| 93 |
if sampling_steps > 35 and duration_seconds > 2:
|
| 94 |
return 95
|
|
|
|
| 88 |
|
| 89 |
return gr.update(value=best_size)
|
| 90 |
|
| 91 |
+
def get_duration(image,
|
| 92 |
+
prompt,
|
| 93 |
+
size,
|
| 94 |
+
duration_seconds,
|
| 95 |
+
sampling_steps,
|
| 96 |
+
guide_scale,
|
| 97 |
+
shift,
|
| 98 |
+
seed,
|
| 99 |
+
progress):
|
| 100 |
"""Calculate dynamic GPU duration based on parameters."""
|
| 101 |
if sampling_steps > 35 and duration_seconds > 2:
|
| 102 |
return 95
|