FredBonux commited on
Commit
e928442
ยท
1 Parent(s): b4c8aef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -7,15 +7,15 @@ def transcribe(audio):
7
  text = pipe(audio)["text"]
8
  return text
9
 
10
- demo = gr.Interface.from_pipeline(pipe)
11
- demo.launch()
12
 
13
- # iface = gr.Interface(
14
- # fn=transcribe,
15
- # inputs=gr.Audio(source="microphone", type="filepath"),
16
- # outputs="text",
17
- # title="Whisper Small Italian",
18
- # description="Realtime demo for Italian speech recognition using a fine-tuned Whisper small model.",
19
- # )
20
 
21
- # iface.launch()
 
7
  text = pipe(audio)["text"]
8
  return text
9
 
10
+ # demo = gr.Interface.from_pipeline(pipe)
11
+ # demo.launch()
12
 
13
+ iface = gr.Interface(
14
+ fn=transcribe,
15
+ inputs=gr.Audio(source="microphone", type="filepath"),
16
+ outputs="text",
17
+ title="Whisper Small Italian",
18
+ description="Realtime demo for Italian speech recognition using a fine-tuned Whisper small model.",
19
+ )
20
 
21
+ iface.launch()