Campfireman commited on
Commit
e730b78
1 Parent(s): 921236f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -97,13 +97,14 @@ def transcribe2(audio):
97
  text = pipe(audio)["text"]
98
  return text
99
 
100
- iface = gr.Interface(
101
- fn=transcribe,
102
  inputs=gr.Textbox(label = "Enter the URL of the Youtube video clip here (without prefixes like http://):"),
103
  outputs="text",
104
  title="Whisper Small SE",
105
  description="Video Swedish Transcriptior",
106
  )
 
107
 
108
  iface2 = gr.Interface(
109
  fn=transcribe2,
@@ -113,6 +114,6 @@ iface2 = gr.Interface(
113
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
114
  )
115
 
116
- demo = gr.TabbedInterface([iface, iface2],
117
 
118
  demo.launch()
 
97
  text = pipe(audio)["text"]
98
  return text
99
 
100
+
101
+ iface = gr.Interface( fn=transcribe,
102
  inputs=gr.Textbox(label = "Enter the URL of the Youtube video clip here (without prefixes like http://):"),
103
  outputs="text",
104
  title="Whisper Small SE",
105
  description="Video Swedish Transcriptior",
106
  )
107
+
108
 
109
  iface2 = gr.Interface(
110
  fn=transcribe2,
 
114
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
115
  )
116
 
117
+ demo = gr.TabbedInterface([iface, iface2],["Swedish YouTube Video to Text", "Swedish Audio to Text"])
118
 
119
  demo.launch()