gina9726 commited on
Commit
1dc6162
verified
1 Parent(s): 84598ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -3,5 +3,16 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
 
 
 
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()