charliebaby2023 commited on
Commit
7c6be12
1 Parent(s): 79151c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -17
app.py CHANGED
@@ -7,22 +7,8 @@ import gradio as gr
7
 
8
 
9
 
10
- def my_inference_function(name):
11
- return "Heldddddddddddddddlo " + name + "!"
12
-
13
- gradio_interface = gradio.Interface(
14
- fn=my_inference_function,
15
- inputs="text",
16
- outputs="text",
17
- examples=[
18
- ["Jill"],
19
- ["Sam"]
20
- ],
21
- title="_ _",
22
- description="_ _ _",
23
- article="_"
24
- )
25
-
26
 
27
 
28
  data = 'https://www.youtube.com/watch?v=ETDEuH3YL7I' #'https://www.youtube.com/watch?v=bJ5FDtgOwjo'
@@ -40,7 +26,14 @@ interface = gr.Interface(
40
  fn=app,
41
 
42
  inputs=gr.Textbox(data, label="Enter YouTube link"),
43
- outputs=gr.Video(label = "video_path")
 
 
 
 
 
 
 
44
  )
45
  #gr.Interface.queue(api_open=True)
46
  #gradio_interface.launch()
 
7
 
8
 
9
 
10
+ #def my_inference_function(name):
11
+ # return "Heldddddddddddddddlo " + name + "!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
 
14
  data = 'https://www.youtube.com/watch?v=ETDEuH3YL7I' #'https://www.youtube.com/watch?v=bJ5FDtgOwjo'
 
26
  fn=app,
27
 
28
  inputs=gr.Textbox(data, label="Enter YouTube link"),
29
+ outputs=gr.Video(label = "video_path"),
30
+ examples=[
31
+ ["Jill"],
32
+ ["Sam"]
33
+ ],
34
+ title="_ _",
35
+ description="_ _ _",
36
+ article="_"
37
  )
38
  #gr.Interface.queue(api_open=True)
39
  #gradio_interface.launch()