gbsim commited on
Commit
f321cec
·
1 Parent(s): 7eec99c
Files changed (2) hide show
  1. app.py +2 -1
  2. sample.mp4 +0 -0
app.py CHANGED
@@ -1,8 +1,9 @@
 
1
  import gradio as gr
2
 
3
  def test(vid):
4
  return vid
5
 
6
 
7
- iface = gr.Interface(fn=test, inputs='video', outputs='video')
8
  iface.launch(share=True)
 
1
+ import os
2
  import gradio as gr
3
 
4
  def test(vid):
5
  return vid
6
 
7
 
8
+ iface = gr.Interface(fn=test, gr.Video(), 'playable_video', examples=[os.path.join(os.path.dirname(__file__), 'sample.mp4')], cache_examples=True)
9
  iface.launch(share=True)
sample.mp4 ADDED
Binary file (344 kB). View file