Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,12 +116,12 @@ def get_duration(prompt_text, steps, image_file, audio_file_path, max_duration,
|
|
| 116 |
|
| 117 |
def calculate_required_time(steps, max_duration):
|
| 118 |
|
| 119 |
-
warmup_s =
|
| 120 |
|
| 121 |
max_duration_duration_mapping = {
|
| 122 |
-
20:
|
| 123 |
-
45:
|
| 124 |
-
70:
|
| 125 |
95: 20,
|
| 126 |
}
|
| 127 |
each_step_s = max_duration_duration_mapping[max_duration]
|
|
|
|
| 116 |
|
| 117 |
def calculate_required_time(steps, max_duration):
|
| 118 |
|
| 119 |
+
warmup_s = 50
|
| 120 |
|
| 121 |
max_duration_duration_mapping = {
|
| 122 |
+
20: 7,
|
| 123 |
+
45: 7,
|
| 124 |
+
70: 13,
|
| 125 |
95: 20,
|
| 126 |
}
|
| 127 |
each_step_s = max_duration_duration_mapping[max_duration]
|