afroanton commited on
Commit
506893a
1 Parent(s): e3548cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -15,13 +15,13 @@ def transcribeUrl(url):
15
  text = pipe(audio)["text"]
16
  return text
17
 
18
- tts_examples = [
19
- "I love learning machine learning",
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], ["Text-to-speech", "Speech-to-text"])
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()