Update app.py
Browse files
app.py
CHANGED
|
@@ -3,10 +3,10 @@ import gradio as gr
|
|
| 3 |
|
| 4 |
def test(txt, vid):
|
| 5 |
if txt:
|
| 6 |
-
return
|
| 7 |
elif vid:
|
| 8 |
-
return
|
| 9 |
|
| 10 |
# iface = gr.Interface(fn=test, inputs=["text", "video"], outputs="text", examples=["test", os.path.join(os.path.dirname(__file__), 'sample.mp4')])
|
| 11 |
-
iface = gr.Interface(fn=test, inputs=["text", "video"], outputs="
|
| 12 |
iface.launch(share=True)
|
|
|
|
| 3 |
|
| 4 |
def test(txt, vid):
|
| 5 |
if txt:
|
| 6 |
+
return "./world.mp4"
|
| 7 |
elif vid:
|
| 8 |
+
return vid
|
| 9 |
|
| 10 |
# iface = gr.Interface(fn=test, inputs=["text", "video"], outputs="text", examples=["test", os.path.join(os.path.dirname(__file__), 'sample.mp4')])
|
| 11 |
+
iface = gr.Interface(fn=test, inputs=["text", "video"], outputs=["video"])
|
| 12 |
iface.launch(share=True)
|