Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -174,6 +174,8 @@ def infer(ref_image_in, ref_video_in):
|
|
| 174 |
|
| 175 |
return mp4_file_path
|
| 176 |
|
|
|
|
|
|
|
| 177 |
with gr.Blocks() as demo:
|
| 178 |
with gr.Column():
|
| 179 |
with gr.Row():
|
|
@@ -191,7 +193,7 @@ with gr.Blocks() as demo:
|
|
| 191 |
outputs = [output_video],
|
| 192 |
cache_examples = False
|
| 193 |
)
|
| 194 |
-
output_video
|
| 195 |
submit_btn.click(
|
| 196 |
fn = infer,
|
| 197 |
inputs = [ref_image_in, ref_video_in],
|
|
|
|
| 174 |
|
| 175 |
return mp4_file_path
|
| 176 |
|
| 177 |
+
output_video = gr.Video()
|
| 178 |
+
|
| 179 |
with gr.Blocks() as demo:
|
| 180 |
with gr.Column():
|
| 181 |
with gr.Row():
|
|
|
|
| 193 |
outputs = [output_video],
|
| 194 |
cache_examples = False
|
| 195 |
)
|
| 196 |
+
output_video.render()
|
| 197 |
submit_btn.click(
|
| 198 |
fn = infer,
|
| 199 |
inputs = [ref_image_in, ref_video_in],
|