NLPV commited on
Commit
2a0284a
·
verified ·
1 Parent(s): 8a81257

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -57,14 +57,15 @@ with gr.Blocks() as app:
57
  play_button.click(play_text, inputs=[input_text], outputs=[])
58
 
59
  gr.Markdown("### 🎤 Now record yourself reading the text aloud below:")
60
- audio_input = gr.Audio(source="microphone", type="filepath", label="Record Your Voice")
61
 
62
  submit_button = gr.Button("✅ Submit Recording for Checking")
63
-
64
  output = gr.JSON(label="Results")
65
-
66
  submit_button.click(transcribe_audio, inputs=[audio_input, input_text], outputs=[output])
67
 
 
68
  # Launch the app
69
  app.launch()
70
 
 
57
  play_button.click(play_text, inputs=[input_text], outputs=[])
58
 
59
  gr.Markdown("### 🎤 Now record yourself reading the text aloud below:")
60
+ audio_input = gr.Audio(type="filepath", label="Record Your Voice", microphone=True)
61
 
62
  submit_button = gr.Button("✅ Submit Recording for Checking")
63
+
64
  output = gr.JSON(label="Results")
65
+
66
  submit_button.click(transcribe_audio, inputs=[audio_input, input_text], outputs=[output])
67
 
68
+
69
  # Launch the app
70
  app.launch()
71