jinggujiwoo7 commited on
Commit
d2741b1
1 Parent(s): 53cba9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ with gr.Blocks() as demo:
52
  with gr.Tab("Record Voice"):
53
  student_name_input = gr.Textbox(placeholder="Your name", label="Your name")
54
  question_display = gr.Textbox(label="Question", interactive=False)
55
- voice_input = gr.Audio(type="file", label="Record your voice")
56
  submit_voice = gr.Button("Submit Voice")
57
  output_voice = gr.Textbox(label="Status")
58
  submit_voice.click(record_student_voice, inputs=[student_name_input, state_question, voice_input], outputs=output_voice)
@@ -66,7 +66,7 @@ with gr.Blocks() as demo:
66
 
67
  with gr.Tab("Play Voice"):
68
  recording_select = gr.Dropdown(label="Select a recording to play")
69
- play_audio = gr.Audio(type="file", label="Recorded Voice")
70
  recording_select.change(lambda x: x, inputs=recording_select, outputs=play_audio)
71
 
72
  with gr.Tab("Write Comment"):
 
52
  with gr.Tab("Record Voice"):
53
  student_name_input = gr.Textbox(placeholder="Your name", label="Your name")
54
  question_display = gr.Textbox(label="Question", interactive=False)
55
+ voice_input = gr.Audio(type="filepath", label="Record your voice")
56
  submit_voice = gr.Button("Submit Voice")
57
  output_voice = gr.Textbox(label="Status")
58
  submit_voice.click(record_student_voice, inputs=[student_name_input, state_question, voice_input], outputs=output_voice)
 
66
 
67
  with gr.Tab("Play Voice"):
68
  recording_select = gr.Dropdown(label="Select a recording to play")
69
+ play_audio = gr.Audio(type="filepath", label="Recorded Voice")
70
  recording_select.change(lambda x: x, inputs=recording_select, outputs=play_audio)
71
 
72
  with gr.Tab("Write Comment"):