Test Gradio
Browse files
app.py
CHANGED
@@ -48,9 +48,9 @@ def caption_youtube(url):
|
|
48 |
def user_greeting(name):
|
49 |
return "Hi! " + name + " Welcome to your first Gradio application!😎"
|
50 |
|
51 |
-
video_url = 'https://www.youtube.com/watch?v=orbkg5JH9C8'
|
52 |
-
subprocess.call(['youtube-dl', '-f', 'best', '-o', 'video.mp4', video_url]
|
53 |
-
|
54 |
-
|
55 |
|
56 |
|
|
|
48 |
def user_greeting(name):
|
49 |
return "Hi! " + name + " Welcome to your first Gradio application!😎"
|
50 |
|
51 |
+
# video_url = 'https://www.youtube.com/watch?v=orbkg5JH9C8'
|
52 |
+
# subprocess.call(['youtube-dl', '-f', 'best', '-o', 'video.mp4', video_url]
|
53 |
+
app = gra.Interface(fn=user_greeting, inputs='text', outputs="text")
|
54 |
+
app.launch()
|
55 |
|
56 |
|