Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -192,7 +192,7 @@ def run_inference(prompt, video_path, condition, video_length, seed):
|
|
| 192 |
final = change_video_fps(video_path_output)
|
| 193 |
print(f"FINISHED !")
|
| 194 |
|
| 195 |
-
return final
|
| 196 |
|
| 197 |
|
| 198 |
css="""
|
|
@@ -283,7 +283,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 283 |
video_length,
|
| 284 |
seed
|
| 285 |
],
|
| 286 |
-
outputs=[video_res],
|
| 287 |
cache_examples=True
|
| 288 |
)
|
| 289 |
video_path.change(fn=get_frame_count,
|
|
@@ -298,6 +298,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 298 |
video_length,
|
| 299 |
seed
|
| 300 |
],
|
| 301 |
-
outputs=[video_res])
|
| 302 |
|
| 303 |
demo.queue(max_size=12).launch()
|
|
|
|
| 192 |
final = change_video_fps(video_path_output)
|
| 193 |
print(f"FINISHED !")
|
| 194 |
|
| 195 |
+
return final, gr.Group.update(visible=True)
|
| 196 |
|
| 197 |
|
| 198 |
css="""
|
|
|
|
| 283 |
video_length,
|
| 284 |
seed
|
| 285 |
],
|
| 286 |
+
outputs=[video_res, share_group],
|
| 287 |
cache_examples=True
|
| 288 |
)
|
| 289 |
video_path.change(fn=get_frame_count,
|
|
|
|
| 298 |
video_length,
|
| 299 |
seed
|
| 300 |
],
|
| 301 |
+
outputs=[video_res, share_group])
|
| 302 |
|
| 303 |
demo.queue(max_size=12).launch()
|