tony1966 commited on
Commit
f6aac8b
·
verified ·
1 Parent(s): d64999b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def handler(in1):
4
+ return in1
5
+
6
+ in1=gr.Textbox(label='影片檔 (avi 或 mp4) URL')
7
+ out1=gr.Video(label='播放網路影片')
8
+ iface=gr.Interface(
9
+ fn=handler,
10
+ inputs=in1,
11
+ outputs=out1,
12
+ title='Video 元件測試',
13
+ flagging_mode='never',
14
+ )
15
+ iface.launch()