Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -270,9 +270,9 @@ def handle_generate(*_inp):
|
|
270 |
else:
|
271 |
export_to_video(pipe_out,name,fps=fps)
|
272 |
if inp[4] == 0:
|
273 |
-
return name,
|
274 |
else:
|
275 |
-
return
|
276 |
|
277 |
def ui():
|
278 |
global result
|
@@ -333,9 +333,9 @@ def ui():
|
|
333 |
)
|
334 |
with gr.Row():
|
335 |
with gr.Column():
|
336 |
-
res_img = gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False, scale=0.
|
337 |
with gr.Column():
|
338 |
-
res_vid = gr.Video(interactive=False,elem_classes="image-container", label="Result", show_label=True, show_share_button=False, scale=0.
|
339 |
with gr.Row():
|
340 |
run_button = gr.Button("Start!",elem_classes="btn",scale=0)
|
341 |
|
|
|
270 |
else:
|
271 |
export_to_video(pipe_out,name,fps=fps)
|
272 |
if inp[4] == 0:
|
273 |
+
return name, None
|
274 |
else:
|
275 |
+
return None, name
|
276 |
|
277 |
def ui():
|
278 |
global result
|
|
|
333 |
)
|
334 |
with gr.Row():
|
335 |
with gr.Column():
|
336 |
+
res_img = gr.Image(interactive=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False, scale=0.1)
|
337 |
with gr.Column():
|
338 |
+
res_vid = gr.Video(interactive=False,elem_classes="image-container", label="Result", show_label=True, show_share_button=False, scale=0.1)
|
339 |
with gr.Row():
|
340 |
run_button = gr.Button("Start!",elem_classes="btn",scale=0)
|
341 |
|