Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,12 +7,15 @@ def transcribe(audio):
|
|
| 7 |
text = pipe(audio)["text"]
|
| 8 |
return text
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|