Spaces:
Sleeping
Sleeping
120
Browse files
app.py
CHANGED
|
@@ -141,9 +141,9 @@ def get_duration(prompt, negative_prompt, input_image_filepath, input_video_file
|
|
| 141 |
seed_ui, randomize_seed, ui_guidance_scale, improve_texture_flag,
|
| 142 |
progress):
|
| 143 |
if duration_ui > 7:
|
| 144 |
-
return
|
| 145 |
else:
|
| 146 |
-
return
|
| 147 |
|
| 148 |
@spaces.GPU(duration=get_duration)
|
| 149 |
def generate(prompt, negative_prompt, input_image_filepath, input_video_filepath,
|
|
|
|
| 141 |
seed_ui, randomize_seed, ui_guidance_scale, improve_texture_flag,
|
| 142 |
progress):
|
| 143 |
if duration_ui > 7:
|
| 144 |
+
return 120
|
| 145 |
else:
|
| 146 |
+
return 120
|
| 147 |
|
| 148 |
@spaces.GPU(duration=get_duration)
|
| 149 |
def generate(prompt, negative_prompt, input_image_filepath, input_video_filepath,
|