Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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 |
|