Spaces:
Running
Running
Upgrade
Browse files
app.py
CHANGED
|
@@ -104,14 +104,15 @@ gr.Interface(
|
|
| 104 |
fn=predict,
|
| 105 |
inputs=[
|
| 106 |
gr.Radio(label="目标语言", choices=supportLangs, value="chinese"),
|
| 107 |
-
gr.Audio(label="
|
| 108 |
-
gr.Audio(label="录制语音", type="numpy"),
|
| 109 |
],
|
| 110 |
outputs=[
|
| 111 |
-
gr.Text(label="识别出的文字")
|
| 112 |
],
|
| 113 |
title=title,
|
| 114 |
description=description,
|
| 115 |
article=article,
|
| 116 |
examples=examples,
|
|
|
|
|
|
|
| 117 |
).launch()
|
|
|
|
| 104 |
fn=predict,
|
| 105 |
inputs=[
|
| 106 |
gr.Radio(label="目标语言", choices=supportLangs, value="chinese"),
|
| 107 |
+
gr.Audio(label="上传或录制语音", type="numpy")
|
|
|
|
| 108 |
],
|
| 109 |
outputs=[
|
| 110 |
+
gr.Text(label="识别出的文字")
|
| 111 |
],
|
| 112 |
title=title,
|
| 113 |
description=description,
|
| 114 |
article=article,
|
| 115 |
examples=examples,
|
| 116 |
+
submit_btn="提交",
|
| 117 |
+
clear_btn="清除"
|
| 118 |
).launch()
|