Liusuthu commited on
Commit
ef0acdf
·
verified ·
1 Parent(s): 77e2a19

Update consult.py

Browse files
Files changed (1) hide show
  1. consult.py +7 -7
consult.py CHANGED
@@ -159,7 +159,7 @@ with gr.Blocks() as consult:
159
  with gr.Column(visible=False) as ans3_1: # 文本回答
160
  text3_1 = gr.Textbox(interactive=True)
161
  btn3_1 = gr.Button("抱抱你")
162
- result3_11 = gr.Textbox(label="转录结果3_1")
163
  result3_12 = gr.Textbox(label="分数结果3_1",visible=False)
164
  # 请把audio3_2换成Audio组件
165
  with gr.Column(visible=False) as ans3_2: # 语音回答
@@ -225,7 +225,7 @@ with gr.Blocks() as consult:
225
  with gr.Column(visible=False) as ans4_1:
226
  text4_1 = gr.Textbox(interactive=True)
227
  btn4_1 = gr.Button("继续")
228
- result4_11 = gr.Textbox(label="结果4_1")
229
  result4_12 = gr.Textbox(label="分数结果4_1",visible=False)
230
  # 请把audio4_2换成Audio组件
231
  with gr.Column(visible=False) as ans4_2:
@@ -233,7 +233,7 @@ with gr.Blocks() as consult:
233
  label="语音录制(录制结束后,请等待语音条闪烁并出现波形后再提交)", interactive=True, sources=["microphone"]
234
  ) # 对应out_prob.squeeze(0).numpy()[0]
235
  btn4_2 = gr.Button("继续")
236
- result4_21 = gr.Textbox(label="结果4_2")
237
  result4_22 = gr.Textbox(label="分数结果4_2",visible=False)
238
  # 请把video4_3换成Video组件
239
  with gr.Column(visible=False) as ans4_3:
@@ -245,7 +245,7 @@ with gr.Blocks() as consult:
245
  label="视频录制(录制结束后,请等待画面闪烁并再次出现后再提交)",
246
  )
247
  btn4_3 = gr.Button("继续")
248
- result4_31 = gr.Textbox(label="结果4_3")
249
  result4_32 = gr.Textbox(label="分数结果4_3",visible=False)
250
 
251
  # 针对无价值感、无意义感、无力感
@@ -264,7 +264,7 @@ with gr.Blocks() as consult:
264
  with gr.Column(visible=False) as ans5_1:
265
  text5_1 = gr.Textbox(interactive=True)
266
  btn5_1 = gr.Button("提交")
267
- result5_11 = gr.Textbox(label="结果5_1")
268
  result5_12 = gr.Textbox(label="分数结果5_1",visible=False)
269
  # 请把audio5_2换成Audio组件
270
  with gr.Column(visible=False) as ans5_2:
@@ -272,14 +272,14 @@ with gr.Blocks() as consult:
272
  label="语音录制(录制结束后,请等待语音条闪烁并出现波形后再提交)", interactive=True, sources=["microphone"],
273
  ) # 对应out_prob.squeeze(0).numpy()[0]
274
  btn5_2 = gr.Button("提交")
275
- result5_21 = gr.Textbox(label="结果5_2")
276
  result5_22 = gr.Textbox(label="分数结果5_2",visible=False)
277
  # 请把video5_3换成Video组件
278
  with gr.Column(visible=False) as ans5_3:
279
  # score = gr.Textbox(label="得分")
280
  video5_3=gr.Video(sources=["webcam", "upload"],interactive=True,format='mp4',width=500,label="视频录制(录制结束后,请等待画面闪烁并再次出现后再提交)")
281
  btn5_3 = gr.Button("提交")
282
- result5_31 = gr.Textbox(label="结果5_3")
283
  result5_32 = gr.Textbox(label="分数结果5_3",visible=False)
284
  with gr.Column(visible=False) as summary:
285
  gr.Markdown("#### 你完成了所有的测验,点击下方按钮生成报告吧~")
 
159
  with gr.Column(visible=False) as ans3_1: # 文本回答
160
  text3_1 = gr.Textbox(interactive=True)
161
  btn3_1 = gr.Button("抱抱你")
162
+ result3_11 = gr.Textbox(label="转录结果3_1",visible=False)
163
  result3_12 = gr.Textbox(label="分数结果3_1",visible=False)
164
  # 请把audio3_2换成Audio组件
165
  with gr.Column(visible=False) as ans3_2: # 语音回答
 
225
  with gr.Column(visible=False) as ans4_1:
226
  text4_1 = gr.Textbox(interactive=True)
227
  btn4_1 = gr.Button("继续")
228
+ result4_11 = gr.Textbox(label="结果4_1",visible=False)
229
  result4_12 = gr.Textbox(label="分数结果4_1",visible=False)
230
  # 请把audio4_2换成Audio组件
231
  with gr.Column(visible=False) as ans4_2:
 
233
  label="语音录制(录制结束后,请等待语音条闪烁并出现波形后再提交)", interactive=True, sources=["microphone"]
234
  ) # 对应out_prob.squeeze(0).numpy()[0]
235
  btn4_2 = gr.Button("继续")
236
+ result4_21 = gr.Textbox(label="转录结果4_2")
237
  result4_22 = gr.Textbox(label="分数结果4_2",visible=False)
238
  # 请把video4_3换成Video组件
239
  with gr.Column(visible=False) as ans4_3:
 
245
  label="视频录制(录制结束后,请等待画面闪烁并再次出现后再提交)",
246
  )
247
  btn4_3 = gr.Button("继续")
248
+ result4_31 = gr.Textbox(label="转录结果4_3")
249
  result4_32 = gr.Textbox(label="分数结果4_3",visible=False)
250
 
251
  # 针对无价值感、无意义感、无力感
 
264
  with gr.Column(visible=False) as ans5_1:
265
  text5_1 = gr.Textbox(interactive=True)
266
  btn5_1 = gr.Button("提交")
267
+ result5_11 = gr.Textbox(label="转录结果5_1",visible=False)
268
  result5_12 = gr.Textbox(label="分数结果5_1",visible=False)
269
  # 请把audio5_2换成Audio组件
270
  with gr.Column(visible=False) as ans5_2:
 
272
  label="语音录制(录制结束后,请等待语音条闪烁并出现波形后再提交)", interactive=True, sources=["microphone"],
273
  ) # 对应out_prob.squeeze(0).numpy()[0]
274
  btn5_2 = gr.Button("提交")
275
+ result5_21 = gr.Textbox(label="转录结果5_2")
276
  result5_22 = gr.Textbox(label="分数结果5_2",visible=False)
277
  # 请把video5_3换成Video组件
278
  with gr.Column(visible=False) as ans5_3:
279
  # score = gr.Textbox(label="得分")
280
  video5_3=gr.Video(sources=["webcam", "upload"],interactive=True,format='mp4',width=500,label="视频录制(录制结束后,请等待画面闪烁并再次出现后再提交)")
281
  btn5_3 = gr.Button("提交")
282
+ result5_31 = gr.Textbox(label="转录结果5_3")
283
  result5_32 = gr.Textbox(label="分数结果5_3",visible=False)
284
  with gr.Column(visible=False) as summary:
285
  gr.Markdown("#### 你完成了所有的测验,点击下方按钮生成报告吧~")