Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
·
ebf0b29
1
Parent(s):
7bd943d
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from pytube import YouTube
|
|
5 |
from transformers import pipeline, T5Tokenizer, T5ForConditionalGeneration, AutoTokenizer, AutoModelForSeq2SeqLM
|
6 |
from wordcloud import WordCloud
|
7 |
import re
|
|
|
8 |
|
9 |
class GradioInference:
|
10 |
def __init__(self):
|
@@ -374,6 +375,9 @@ with block:
|
|
374 |
gr.Markdown("### Video Examples")
|
375 |
gr.Examples(["https://www.youtube.com/shorts/xDNzz8yAH7I","https://www.youtube.com/watch?v=kib6uXQsxBA&pp=ygURc3RldmUgam9icyBzcGVlY2g%3D"], inputs=link)
|
376 |
|
|
|
|
|
|
|
377 |
gr.Markdown("### About the app:")
|
378 |
|
379 |
with gr.Accordion("What is YouTube Insights?", open=False):
|
|
|
5 |
from transformers import pipeline, T5Tokenizer, T5ForConditionalGeneration, AutoTokenizer, AutoModelForSeq2SeqLM
|
6 |
from wordcloud import WordCloud
|
7 |
import re
|
8 |
+
import os
|
9 |
|
10 |
class GradioInference:
|
11 |
def __init__(self):
|
|
|
375 |
gr.Markdown("### Video Examples")
|
376 |
gr.Examples(["https://www.youtube.com/shorts/xDNzz8yAH7I","https://www.youtube.com/watch?v=kib6uXQsxBA&pp=ygURc3RldmUgam9icyBzcGVlY2g%3D"], inputs=link)
|
377 |
|
378 |
+
gr.Markdown("### Audio Examples")
|
379 |
+
gr.Examples([os.path.join(os.path.dirname(__file__),"audios/TED_ed.wav")]], inputs=audio_file)
|
380 |
+
|
381 |
gr.Markdown("### About the app:")
|
382 |
|
383 |
with gr.Accordion("What is YouTube Insights?", open=False):
|