Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,17 +96,17 @@ def intelligent_tutor(audio_file, provide_hints=False):
|
|
96 |
iface = gr.Interface(
|
97 |
fn=intelligent_tutor,
|
98 |
inputs=[
|
99 |
-
gr.Audio(source="microphone", type="filepath", label="
|
100 |
-
gr.inputs.Checkbox(label="
|
101 |
],
|
102 |
outputs=[
|
103 |
-
gr.outputs.HTML(label="
|
104 |
-
gr.outputs.HTML(label="
|
105 |
],
|
106 |
-
title="
|
107 |
description=(get_image_html() +
|
108 |
"<br> " + questions[0] +
|
109 |
-
"<br
|
110 |
-
"<b
|
111 |
)
|
112 |
iface.launch(share=False)
|
|
|
96 |
iface = gr.Interface(
|
97 |
fn=intelligent_tutor,
|
98 |
inputs=[
|
99 |
+
gr.Audio(source="microphone", type="filepath", label="录音", sampling_rate=16000),
|
100 |
+
gr.inputs.Checkbox(label="提供对话总结"), # Checkbox for hints
|
101 |
],
|
102 |
outputs=[
|
103 |
+
gr.outputs.HTML(label="问题"),
|
104 |
+
gr.outputs.HTML(label="输出文本"),
|
105 |
],
|
106 |
+
title="口语教练",
|
107 |
description=(get_image_html() +
|
108 |
"<br> " + questions[0] +
|
109 |
+
"<br>每个问题有两次尝试机会。<br>" +
|
110 |
+
"<b>请在第一个问题后的输出屏幕上回答显示的问题。</b>"),
|
111 |
)
|
112 |
iface.launch(share=False)
|