Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -2088,12 +2088,11 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
2088 |
clear_button.click(fn=clear_textbox, inputs=None, outputs=chat_input)
|
2089 |
|
2090 |
# Recorder section
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
|
2095 |
-
|
2096 |
-
transcribe_button.click(fn=transcribe_and_update_textbox, inputs=[audio_input, chat_input], outputs=[transcribe_output, chat_input])
|
2097 |
|
2098 |
with gr.Column():
|
2099 |
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1), width=400, height=400)
|
|
|
2088 |
clear_button.click(fn=clear_textbox, inputs=None, outputs=chat_input)
|
2089 |
|
2090 |
# Recorder section
|
2091 |
+
|
2092 |
+
gr.Markdown("<h2>Hey Radar</h2>")
|
2093 |
+
audio_input = gr.Audio(sources=["microphone"], type='numpy')
|
2094 |
+
transcribe_button = gr.Button("Transcribe")
|
2095 |
+
transcribe_button.click(fn=transcribe_and_update_textbox, inputs=[audio_input, chat_input], outputs=[transcribe_output, chat_input])
|
|
|
2096 |
|
2097 |
with gr.Column():
|
2098 |
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1), width=400, height=400)
|