Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -158,14 +158,18 @@ with gr.Blocks() as suche:
|
|
158 |
search_button.click(search_similar_documents, inputs=prompt_input, outputs=search_output)
|
159 |
|
160 |
|
161 |
-
|
162 |
gr.Markdown("### audio", elem_classes="tab-header")
|
|
|
163 |
with gr.Row():
|
164 |
-
sr_inputs=gr.Audio(source="microphone", type="filepath")
|
165 |
-
sr_outputs=gr.Textbox(label="Transcribed Text")
|
|
|
166 |
with gr.Row():
|
167 |
submit_button = gr.Button("rec")
|
168 |
-
|
|
|
|
|
169 |
|
170 |
# Erstelle die Gradio-Schnittstelle
|
171 |
with gr.Blocks() as demo:
|
|
|
158 |
search_button.click(search_similar_documents, inputs=prompt_input, outputs=search_output)
|
159 |
|
160 |
|
161 |
+
with gr.Blocks() as speech:
|
162 |
gr.Markdown("### audio", elem_classes="tab-header")
|
163 |
+
|
164 |
with gr.Row():
|
165 |
+
sr_inputs = gr.Audio(source="microphone", type="filepath")
|
166 |
+
sr_outputs = gr.Textbox(label="Transcribed Text")
|
167 |
+
|
168 |
with gr.Row():
|
169 |
submit_button = gr.Button("rec")
|
170 |
+
|
171 |
+
submit_button.click(transcribe_audio, inputs=sr_inputs, outputs=sr_outputs)
|
172 |
+
|
173 |
|
174 |
# Erstelle die Gradio-Schnittstelle
|
175 |
with gr.Blocks() as demo:
|