Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,13 +15,13 @@ def transcribeUrl(url):
|
|
15 |
text = pipe(audio)["text"]
|
16 |
return text
|
17 |
|
18 |
-
|
19 |
-
"
|
20 |
-
"How do you do?",
|
21 |
]
|
22 |
|
23 |
url_demo = gr.Interface(
|
24 |
fn=transcribeUrl,
|
|
|
25 |
inputs="text",
|
26 |
outputs="text")
|
27 |
|
@@ -33,7 +33,7 @@ voice_demo = gr.Interface(
|
|
33 |
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
|
34 |
)
|
35 |
|
36 |
-
demo = gr.TabbedInterface([url_demo, voice_demo], ["
|
37 |
|
38 |
if __name__ == "__main__":
|
39 |
demo.launch()
|
|
|
15 |
text = pipe(audio)["text"]
|
16 |
return text
|
17 |
|
18 |
+
url_examples = [
|
19 |
+
"https://www.youtube.com/watch?v=UuDQBjPDbbA&ab_channel=Nyhetsmorgon"
|
|
|
20 |
]
|
21 |
|
22 |
url_demo = gr.Interface(
|
23 |
fn=transcribeUrl,
|
24 |
+
examples=url_examples,
|
25 |
inputs="text",
|
26 |
outputs="text")
|
27 |
|
|
|
33 |
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
|
34 |
)
|
35 |
|
36 |
+
demo = gr.TabbedInterface([url_demo, voice_demo], ["video-to-text", "voice-to-text"])
|
37 |
|
38 |
if __name__ == "__main__":
|
39 |
demo.launch()
|