simonraj commited on
Commit
48c2b70
·
1 Parent(s): 22e4172

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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="Record audio", sampling_rate=16000),
100
- gr.inputs.Checkbox(label="Provide Summary of Conversation"), # Checkbox for hints
101
  ],
102
  outputs=[
103
- gr.outputs.HTML(label="Question"),
104
- gr.outputs.HTML(label="Output Text"),
105
  ],
106
- title="Oral Coach for Stimulus Based Conversation",
107
  description=(get_image_html() +
108
  "<br> " + questions[0] +
109
- "<br>You have two attempts for each question.<br>" +
110
- "<b>Please answer the displayed question at the output screen after the 1st Question.</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)