FredBonux commited on
Commit
8982fe5
ยท
1 Parent(s): 82ffc12

Update app.py

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