File size: 301 Bytes
f6aac8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def handler(in1):
    return in1

in1=gr.Textbox(label='影片檔 (avi 或 mp4) URL')  
out1=gr.Video(label='播放網路影片')
iface=gr.Interface(
    fn=handler,
    inputs=in1, 
    outputs=out1,
    title='Video 元件測試',
    flagging_mode='never',
    )
iface.launch()