Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,10 @@ def process_transcribe(file):
|
|
22 |
return raw_text
|
23 |
|
24 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="blue")) as iface:
|
25 |
-
with gr.Tab("
|
26 |
with gr.Row():
|
27 |
with gr.Column():
|
28 |
-
|
29 |
-
audio_file = gr.Audio(sources=["upload"], type="numpy")
|
30 |
submit_btn = gr.Button("Submit", variant="primary")
|
31 |
with gr.Column():
|
32 |
raw_transcript = gr.Textbox(label="Transcription")
|
|
|
22 |
return raw_text
|
23 |
|
24 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="blue")) as iface:
|
25 |
+
with gr.Tab("Speech2text prescription"):
|
26 |
with gr.Row():
|
27 |
with gr.Column():
|
28 |
+
audio_file = gr.Audio(sources=["upload", "microphone"], type="numpy", label="Audio")
|
|
|
29 |
submit_btn = gr.Button("Submit", variant="primary")
|
30 |
with gr.Column():
|
31 |
raw_transcript = gr.Textbox(label="Transcription")
|