FredBonux commited on
Commit
54e968a
ยท
1 Parent(s): bad1eb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,8 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
- import gradio as gr
4
 
5
- pipe = pipeline(model="FredBonux/whisper-small-it") # change to "your-username/the-name-you-picked"
6
 
7
  def transcribe(audio):
8
  text = pipe(audio)["text"]
@@ -13,7 +12,7 @@ iface = gr.Interface(
13
  inputs=gr.Audio(source="microphone", type="filepath"),
14
  outputs="text",
15
  title="Whisper Small Italian",
16
- description="Realtime demo for Hindi speech recognition using a fine-tuned Whisper small model.",
17
  )
18
 
19
  iface.launch()
 
1
  import gradio as gr
2
  from transformers import pipeline
 
3
 
4
+ pipe = pipeline("automatic-speech-recognition", model="FredBonux/whisper-small-it")
5
 
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]
 
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()