jordonpeter01 commited on
Commit
c1c005a
·
verified ·
1 Parent(s): dcc0821

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -1,7 +1,4 @@
1
  import gradio as gr
2
- from gradio import URL
3
- from gradio.inputs import URL
4
- from gradio.outputs import HTML
5
 
6
  def display_video(url):
7
  return f"""
@@ -13,8 +10,8 @@ def display_video(url):
13
 
14
  demo = gr.Interface(
15
  display_video,
16
- [URL()],
17
- HTML(type="youtube"),
18
  )
19
 
20
- demo.launch()
 
1
  import gradio as gr
 
 
 
2
 
3
  def display_video(url):
4
  return f"""
 
10
 
11
  demo = gr.Interface(
12
  display_video,
13
+ gr.inputs.Textbox(label="URL do vídeo"),
14
+ gr.outputs.HTML(),
15
  )
16
 
17
+ demo.launch()