Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,12 +82,10 @@ desc = "Upload or record audio (wav/mp3). Model: vinai/PhoWhisper-small. Resampl
|
|
| 82 |
|
| 83 |
app = gr.Interface(
|
| 84 |
fn=s2t,
|
| 85 |
-
inputs
|
| 86 |
outputs=gr.Textbox(label="Transcription"),
|
| 87 |
-
title=
|
| 88 |
-
description=
|
| 89 |
-
allow_flagging="never",
|
| 90 |
-
examples=[],
|
| 91 |
)
|
| 92 |
|
| 93 |
if __name__ == "__main__":
|
|
|
|
| 82 |
|
| 83 |
app = gr.Interface(
|
| 84 |
fn=s2t,
|
| 85 |
+
inputs=gr.Audio(type="numpy", label="Upload or record audio (.wav/.mp3)"),
|
| 86 |
outputs=gr.Textbox(label="Transcription"),
|
| 87 |
+
title="Vietnamese Speech-to-Text — PhoWhisper-small",
|
| 88 |
+
description="Model: vinai/PhoWhisper-small. Resamples to 16 kHz."
|
|
|
|
|
|
|
| 89 |
)
|
| 90 |
|
| 91 |
if __name__ == "__main__":
|