gbsim commited on
Commit
68a5d49
·
verified ·
1 Parent(s): 1346e95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,10 +3,10 @@ import gradio as gr
3
 
4
  def test(txt, vid):
5
  if txt:
6
- return txt
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="text")
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)