charliebaby2023 commited on
Commit
79151c9
1 Parent(s): 79c71e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -0
app.py CHANGED
@@ -3,6 +3,28 @@ import requests
3
  from huggingface_hub import InferenceClient
4
 
5
  import gradio as gr
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  data = 'https://www.youtube.com/watch?v=ETDEuH3YL7I' #'https://www.youtube.com/watch?v=bJ5FDtgOwjo'
7
 
8
 
@@ -21,6 +43,7 @@ interface = gr.Interface(
21
  outputs=gr.Video(label = "video_path")
22
  )
23
  #gr.Interface.queue(api_open=True)
 
24
  interface.launch(debug=True)
25
 
26
 
 
3
  from huggingface_hub import InferenceClient
4
 
5
  import gradio as gr
6
+
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'
29
 
30
 
 
43
  outputs=gr.Video(label = "video_path")
44
  )
45
  #gr.Interface.queue(api_open=True)
46
+ #gradio_interface.launch()
47
  interface.launch(debug=True)
48
 
49