Spaces:
Runtime error
Runtime error
jiedong-yang
commited on
Commit
β’
0a4a5ed
1
Parent(s):
dddc03b
Update app.py
Browse files
app.py
CHANGED
@@ -199,8 +199,9 @@ with demo:
|
|
199 |
|
200 |
examples = gr.Examples(examples=["https://www.youtube.com/watch?v=DuX4K4eeTz8",
|
201 |
"https://www.youtube.com/watch?v=nepOSEGHHCQ"],
|
|
|
202 |
fn=lambda x: speech_to_text(audio_from_url(x)),
|
203 |
-
|
204 |
|
205 |
gr.HTML(footer_html)
|
206 |
|
|
|
199 |
|
200 |
examples = gr.Examples(examples=["https://www.youtube.com/watch?v=DuX4K4eeTz8",
|
201 |
"https://www.youtube.com/watch?v=nepOSEGHHCQ"],
|
202 |
+
inputs=url, outputs=text,
|
203 |
fn=lambda x: speech_to_text(audio_from_url(x)),
|
204 |
+
cache_examples=True)
|
205 |
|
206 |
gr.HTML(footer_html)
|
207 |
|