File size: 467 Bytes
84598ac
 
 
 
 
1dc6162
 
 
 
 
 
 
 
 
 
 
 
84598ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr

def greet(name):
    return "Hello " + name + "!!"

def video_identity(video):
    return video

video_url = "https://youtu.be/yGodQAbYW_E"
iface = gr.Interface(video_identity, 
                    gr.Video(), 
                    "playable_video", 
                    examples=[video_url], 
                    cache_examples=True)

#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
#iface = gr.FileExplorer(路路路)
iface.launch()