Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -94,12 +94,13 @@ with gr.Blocks(css=custom_css) as demo:
|
|
94 |
details_output = gr.Markdown(label="answer", elem_id="md")
|
95 |
#details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
|
96 |
with gr.Row():
|
97 |
-
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
|
|
98 |
with gr.Row():
|
99 |
button = gr.Button("Senden")
|
100 |
|
101 |
# Connect the button to the function
|
102 |
-
button.click(fn=websearch, inputs=ort_input, outputs=details_output)
|
103 |
|
104 |
# Launch the Gradio application
|
105 |
demo.launch()
|
|
|
94 |
details_output = gr.Markdown(label="answer", elem_id="md")
|
95 |
#details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
|
96 |
with gr.Row():
|
97 |
+
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
98 |
+
audio_input=gr.Microphone(type="filepath")
|
99 |
with gr.Row():
|
100 |
button = gr.Button("Senden")
|
101 |
|
102 |
# Connect the button to the function
|
103 |
+
button.click(fn=websearch, inputs={ort_input, audio_input], outputs=details_output)
|
104 |
|
105 |
# Launch the Gradio application
|
106 |
demo.launch()
|