jiedong-yang commited on
Commit
6fc6d51
β€’
1 Parent(s): ba842e8
Files changed (1) hide show
  1. app.py +8 -5
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=["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
 
 
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