Ayushdavidkushwahaaaa
commited on
Commit
•
6cf9d03
1
Parent(s):
fa12f59
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,12 @@ def transcribe(audio):
|
|
20 |
|
21 |
# Gradio interface for live transcription
|
22 |
audio_input = gr.Audio(type="numpy", label="Speak into the microphone for live transcription")
|
|
|
23 |
output_text = gr.Textbox(label="Transcription")
|
24 |
|
25 |
-
# Create a Gradio interface with live microphone input
|
26 |
demo = gr.Interface(fn=transcribe, inputs=audio_input, outputs=output_text, live=True)
|
27 |
|
28 |
# Launch the Gradio app
|
29 |
-
demo.launch()
|
|
|
|
20 |
|
21 |
# Gradio interface for live transcription
|
22 |
audio_input = gr.Audio(type="numpy", label="Speak into the microphone for live transcription")
|
23 |
+
|
24 |
output_text = gr.Textbox(label="Transcription")
|
25 |
|
26 |
+
# Create a Gradio interface with live microphone input and set `live=True`
|
27 |
demo = gr.Interface(fn=transcribe, inputs=audio_input, outputs=output_text, live=True)
|
28 |
|
29 |
# Launch the Gradio app
|
30 |
+
demo.launch(share=True)
|
31 |
+
|