Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|