Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -141,7 +141,7 @@ with gr.Blocks(css=CSS, theme=theme, title="SozKZ ASR") as demo:
|
|
| 141 |
</div>""")
|
| 142 |
|
| 143 |
model_sel = gr.Radio(list(ASR_MODELS.keys()), value="v2 (CTC+CE)", label="Model", interactive=True)
|
| 144 |
-
audio_input = gr.Audio(sources=["
|
| 145 |
btn = gr.Button("Transcribe", variant="primary")
|
| 146 |
output = gr.Textbox(label="Transcription", lines=4, elem_classes=["output"])
|
| 147 |
btn.click(fn=transcribe, inputs=[audio_input, model_sel], outputs=output)
|
|
|
|
| 141 |
</div>""")
|
| 142 |
|
| 143 |
model_sel = gr.Radio(list(ASR_MODELS.keys()), value="v2 (CTC+CE)", label="Model", interactive=True)
|
| 144 |
+
audio_input = gr.Audio(sources=["upload"], type="filepath", label="Upload audio (WAV/MP3/FLAC, max 10s)")
|
| 145 |
btn = gr.Button("Transcribe", variant="primary")
|
| 146 |
output = gr.Textbox(label="Transcription", lines=4, elem_classes=["output"])
|
| 147 |
btn.click(fn=transcribe, inputs=[audio_input, model_sel], outputs=output)
|