Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -3,5 +3,16 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
iface.launch()
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
def video_identity(video):
|
7 |
+
return video
|
8 |
+
|
9 |
+
video_url = "https://youtu.be/yGodQAbYW_E"
|
10 |
+
iface = gr.Interface(video_identity,
|
11 |
+
gr.Video(),
|
12 |
+
"playable_video",
|
13 |
+
examples=[video_url],
|
14 |
+
cache_examples=True)
|
15 |
+
|
16 |
+
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
17 |
+
#iface = gr.FileExplorer(路路路)
|
18 |
iface.launch()
|