Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|
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
|
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()
|