Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -481,7 +481,7 @@ with gr.Blocks(title="Enhanced Search Assistant", theme=gr.themes.Soft()) as dem
|
|
| 481 |
)
|
| 482 |
|
| 483 |
with gr.Row():
|
| 484 |
-
|
| 485 |
|
| 486 |
with gr.Row():
|
| 487 |
with gr.Accordion("Editable version"):
|
|
@@ -497,7 +497,7 @@ with gr.Blocks(title="Enhanced Search Assistant", theme=gr.themes.Soft()) as dem
|
|
| 497 |
max_height=600
|
| 498 |
)
|
| 499 |
|
| 500 |
-
|
| 501 |
fn=chatbot_interface,
|
| 502 |
inputs=input_text,
|
| 503 |
outputs=output_text
|
|
@@ -506,7 +506,7 @@ with gr.Blocks(title="Enhanced Search Assistant", theme=gr.themes.Soft()) as dem
|
|
| 506 |
inputs=output_text,
|
| 507 |
outputs=output_textMarkdown)
|
| 508 |
|
| 509 |
-
|
| 510 |
fn=convert_to_markdown,
|
| 511 |
inputs=output_text,
|
| 512 |
outputs=output_textMarkdown)
|
|
|
|
| 481 |
)
|
| 482 |
|
| 483 |
with gr.Row():
|
| 484 |
+
searchbutton = gr.Button("🔍 Search", variant="primary")
|
| 485 |
|
| 486 |
with gr.Row():
|
| 487 |
with gr.Accordion("Editable version"):
|
|
|
|
| 497 |
max_height=600
|
| 498 |
)
|
| 499 |
|
| 500 |
+
searchbutton.click(
|
| 501 |
fn=chatbot_interface,
|
| 502 |
inputs=input_text,
|
| 503 |
outputs=output_text
|
|
|
|
| 506 |
inputs=output_text,
|
| 507 |
outputs=output_textMarkdown)
|
| 508 |
|
| 509 |
+
refreshbutton.click(
|
| 510 |
fn=convert_to_markdown,
|
| 511 |
inputs=output_text,
|
| 512 |
outputs=output_textMarkdown)
|