awerks commited on
Commit
2548792
1 Parent(s): 21e89c2

Add application file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,10 +22,10 @@ def create_video(video_file: gr.inputs.File, debug: bool):
22
  '-y']
23
  subprocess.run(command)
24
  os.close(output_file_handle)
25
- return out_path
26
 
27
  iface = gr.Interface(fn=create_video,
28
  inputs=["file", "checkbox"],
29
- outputs="text")
30
 
31
- iface.launch()
 
22
  '-y']
23
  subprocess.run(command)
24
  os.close(output_file_handle)
25
+ return gr.outputs.File(out_path)
26
 
27
  iface = gr.Interface(fn=create_video,
28
  inputs=["file", "checkbox"],
29
+ outputs=gr.outputs.File())
30
 
31
+ iface.launch()