Spaces:
Runtime error
Runtime error
jiedong-yang
commited on
Commit
β’
6fc6d51
1
Parent(s):
ba842e8
update
Browse files
app.py
CHANGED
@@ -197,11 +197,14 @@ with demo:
|
|
197 |
|
198 |
text.change(wordcloud_func, inputs=text, outputs=image)
|
199 |
|
200 |
-
examples = gr.Examples(examples=[
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
|
|
|
|
|
|
205 |
|
206 |
gr.HTML(footer_html)
|
207 |
|
|
|
197 |
|
198 |
text.change(wordcloud_func, inputs=text, outputs=image)
|
199 |
|
200 |
+
examples = gr.Examples(examples=[
|
201 |
+
"https://www.youtube.com/watch?v=DuX4K4eeTz8",
|
202 |
+
"https://www.youtube.com/watch?v=nepOSEGHHCQ"
|
203 |
+
],
|
204 |
+
inputs=url, outputs=text,
|
205 |
+
fn=lambda x: speech_to_text(audio_from_url(x)),
|
206 |
+
cache_examples=True, preprocess=False
|
207 |
+
)
|
208 |
|
209 |
gr.HTML(footer_html)
|
210 |
|