Add application file
Browse files
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=
|
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()
|