Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
|
|
|
| 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()
|