Yaron Koresh commited on
Commit
085f347
·
verified ·
1 Parent(s): b18b059

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 "", name
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.5)
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.5)
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