Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -471,15 +471,15 @@ def display_documents():
|
|
| 471 |
# Define the checkbox outside the demo block
|
| 472 |
document_selector = gr.CheckboxGroup(label="Select documents to query")
|
| 473 |
|
| 474 |
-
use_web_search = gr.Checkbox(label="Use Web Search", value=
|
| 475 |
|
| 476 |
demo = gr.ChatInterface(
|
| 477 |
respond,
|
| 478 |
-
use_web_search,
|
| 479 |
additional_inputs=[
|
| 480 |
gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[3]),
|
| 481 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
|
| 482 |
gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
|
|
|
|
| 483 |
document_selector # Add the document selector to the chat interface
|
| 484 |
],
|
| 485 |
title="AI-powered Web Search and PDF Chat Assistant",
|
|
|
|
| 471 |
# Define the checkbox outside the demo block
|
| 472 |
document_selector = gr.CheckboxGroup(label="Select documents to query")
|
| 473 |
|
| 474 |
+
use_web_search = gr.Checkbox(label="Use Web Search", value=True)
|
| 475 |
|
| 476 |
demo = gr.ChatInterface(
|
| 477 |
respond,
|
|
|
|
| 478 |
additional_inputs=[
|
| 479 |
gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[3]),
|
| 480 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
|
| 481 |
gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
|
| 482 |
+
use_web_search,
|
| 483 |
document_selector # Add the document selector to the chat interface
|
| 484 |
],
|
| 485 |
title="AI-powered Web Search and PDF Chat Assistant",
|