Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
·
e07287a
1
Parent(s):
221de09
Update app.py
Browse files
app.py
CHANGED
@@ -170,7 +170,7 @@ class GradioInference:
|
|
170 |
- link: a YouTube URL.
|
171 |
"""
|
172 |
if not link:
|
173 |
-
return None,
|
174 |
|
175 |
self.yt = YouTube(link)
|
176 |
return self.yt.thumbnail_url, self.yt.title
|
@@ -396,7 +396,9 @@ with block:
|
|
396 |
gr.Examples(["https://www.youtube.com/shorts/xDNzz8yAH7I","https://www.youtube.com/watch?v=kib6uXQsxBA&pp=ygURc3RldmUgam9icyBzcGVlY2g%3D"], inputs=link)
|
397 |
|
398 |
gr.Markdown("### Audio Examples")
|
399 |
-
gr.Examples(
|
|
|
|
|
400 |
|
401 |
gr.Markdown("### About the app:")
|
402 |
|
|
|
170 |
- link: a YouTube URL.
|
171 |
"""
|
172 |
if not link:
|
173 |
+
return None, None
|
174 |
|
175 |
self.yt = YouTube(link)
|
176 |
return self.yt.thumbnail_url, self.yt.title
|
|
|
396 |
gr.Examples(["https://www.youtube.com/shorts/xDNzz8yAH7I","https://www.youtube.com/watch?v=kib6uXQsxBA&pp=ygURc3RldmUgam9icyBzcGVlY2g%3D"], inputs=link)
|
397 |
|
398 |
gr.Markdown("### Audio Examples")
|
399 |
+
gr.Examples(
|
400 |
+
[[os.path.join(os.path.dirname(__file__),"audios/TED_lagrange_point.wav")],[os.path.join(os.path.dirname(__file__),"audios/TED_platon.wav")]],
|
401 |
+
inputs=audio_file)
|
402 |
|
403 |
gr.Markdown("### About the app:")
|
404 |
|