Spaces:
Sleeping
Sleeping
zanemotiwala
commited on
Commit
•
4f455f6
1
Parent(s):
72823aa
Update app.py
Browse files
app.py
CHANGED
@@ -26,15 +26,15 @@ def transcribe_speech(audio_file_path):
|
|
26 |
|
27 |
logging.basicConfig(level=logging.INFO)
|
28 |
|
29 |
-
with gr.Blocks() as demo:
|
30 |
-
with gr.Row():
|
31 |
-
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
32 |
-
transcribe_button = gr.Button("Transcribe Audio")
|
33 |
|
34 |
with gr.Blocks() as demo:
|
35 |
with gr.Row():
|
36 |
gr.Markdown("# Simple Speech Recognition App")
|
37 |
-
gr.Markdown("### This app allows you to record or upload audio and see its transcription. Powered by the
|
38 |
with gr.Row():
|
39 |
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
40 |
transcribe_button = gr.Button("Transcribe Audio")
|
|
|
26 |
|
27 |
logging.basicConfig(level=logging.INFO)
|
28 |
|
29 |
+
#with gr.Blocks() as demo:
|
30 |
+
# with gr.Row():
|
31 |
+
# mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
32 |
+
# transcribe_button = gr.Button("Transcribe Audio")
|
33 |
|
34 |
with gr.Blocks() as demo:
|
35 |
with gr.Row():
|
36 |
gr.Markdown("# Simple Speech Recognition App")
|
37 |
+
gr.Markdown("### This app allows you to record or upload audio and see its transcription. Powered by the speech_recognition library.")
|
38 |
with gr.Row():
|
39 |
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
40 |
transcribe_button = gr.Button("Transcribe Audio")
|