Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -153,8 +153,8 @@ def predict(prompt):
|
|
153 |
# Create the Gradio interface
|
154 |
with gr.Blocks(css=custom_css) as demo:
|
155 |
with gr.Row():
|
156 |
-
|
157 |
-
details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
|
158 |
with gr.Row():
|
159 |
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
160 |
#audio_input=gr.Microphone(type="filepath")
|
@@ -162,7 +162,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
162 |
button = gr.Button("Senden")
|
163 |
|
164 |
# Connect the button to the function
|
165 |
-
button.click(fn=
|
166 |
|
167 |
# Launch the Gradio application
|
168 |
demo.launch()
|
|
|
153 |
# Create the Gradio interface
|
154 |
with gr.Blocks(css=custom_css) as demo:
|
155 |
with gr.Row():
|
156 |
+
details_output = gr.Markdown(label="answer", elem_id="md")
|
157 |
+
#details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
|
158 |
with gr.Row():
|
159 |
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
160 |
#audio_input=gr.Microphone(type="filepath")
|
|
|
162 |
button = gr.Button("Senden")
|
163 |
|
164 |
# Connect the button to the function
|
165 |
+
button.click(fn=websearch, inputs=ort_input, outputs=details_output)
|
166 |
|
167 |
# Launch the Gradio application
|
168 |
demo.launch()
|