Chrysoula commited on
Commit
e07a5eb
·
1 Parent(s): 3a4a7b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -9,19 +9,11 @@ def transcribe(audio):
9
 
10
  iface = gr.Interface(
11
  fn=transcribe,
12
- inputs=gr.Audio(source="microphone", type="filepath"),
13
  outputs="text",
14
  title="Whisper Small Swedish",
15
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
16
  )
17
 
18
- iface2 = gr.Interface(
19
- fn=transcribe,
20
- inputs=gr.Audio(source="microphone", type="filepath"),
21
- outputs="text",
22
- title="Whisper Small Swedish",
23
- description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
24
- )
25
 
26
- iface.launch()
27
- iface2.launch()
 
9
 
10
  iface = gr.Interface(
11
  fn=transcribe,
12
+ inputs=[gr.Audio(source="microphone", type="filepath"), gradio.File()],
13
  outputs="text",
14
  title="Whisper Small Swedish",
15
  description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
16
  )
17
 
 
 
 
 
 
 
 
18
 
19
+ iface.launch()