Spaces:
Sleeping
Sleeping
zanemotiwala
commited on
Commit
•
ee2727c
1
Parent(s):
f28b22a
Update app.py
Browse files
app.py
CHANGED
@@ -24,14 +24,21 @@ def transcribe_speech(audio_file_path):
|
|
24 |
|
25 |
logging.basicConfig(level=logging.INFO)
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
with gr.Row():
|
29 |
gr.Markdown("# Simple Speech Recognition App")
|
30 |
with gr.Row():
|
31 |
gr.Markdown("### This app allows you to record or upload audio and see its transcription. Powered by the speech_recognition library.")
|
32 |
with gr.Row():
|
33 |
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
34 |
-
transcribe_button = gr.Button("Transcribe Audio"
|
35 |
with gr.Row():
|
36 |
transcription = gr.Textbox(label="Transcription", lines=3, placeholder="Transcription will appear here...")
|
37 |
|
|
|
24 |
|
25 |
logging.basicConfig(level=logging.INFO)
|
26 |
|
27 |
+
css = """
|
28 |
+
button {
|
29 |
+
background-color: blue !important;
|
30 |
+
color: white !important;
|
31 |
+
}
|
32 |
+
"""
|
33 |
+
|
34 |
+
with gr.Blocks(css=css) as demo:
|
35 |
with gr.Row():
|
36 |
gr.Markdown("# Simple Speech Recognition App")
|
37 |
with gr.Row():
|
38 |
gr.Markdown("### This app allows you to record or upload audio and see its transcription. Powered by the speech_recognition library.")
|
39 |
with gr.Row():
|
40 |
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
41 |
+
transcribe_button = gr.Button("Transcribe Audio")
|
42 |
with gr.Row():
|
43 |
transcription = gr.Textbox(label="Transcription", lines=3, placeholder="Transcription will appear here...")
|
44 |
|