Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def asr(audio):
|
|
| 12 |
with gr.Blocks() as app:
|
| 13 |
gr.Markdown("# <center>🌊💕🎶 语音识别</center>")
|
| 14 |
inp = gr.Audio(label="请上传一个音频文件", type="filepath")
|
| 15 |
-
btn = gr.Button("一键开启语音识别",
|
| 16 |
out = gr.Textbox(label="文字内容", interactive=True)
|
| 17 |
|
| 18 |
btn.click(asr, [inp], [out])
|
|
|
|
| 12 |
with gr.Blocks() as app:
|
| 13 |
gr.Markdown("# <center>🌊💕🎶 语音识别</center>")
|
| 14 |
inp = gr.Audio(label="请上传一个音频文件", type="filepath")
|
| 15 |
+
btn = gr.Button("一键开启语音识别", variant="primary")
|
| 16 |
out = gr.Textbox(label="文字内容", interactive=True)
|
| 17 |
|
| 18 |
btn.click(asr, [inp], [out])
|