Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -475,15 +475,15 @@ use_web_search = gr.Checkbox(label="Use Web Search", value=False)
|
|
| 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",
|
| 486 |
-
description="Chat with your PDFs or use web search to answer questions.",
|
| 487 |
theme=gr.themes.Soft(
|
| 488 |
primary_hue="orange",
|
| 489 |
secondary_hue="amber",
|
|
|
|
| 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",
|
| 486 |
+
description="Chat with your PDFs or use web search to answer questions (click on "Use Web Search" in the Additional Inputs section".",
|
| 487 |
theme=gr.themes.Soft(
|
| 488 |
primary_hue="orange",
|
| 489 |
secondary_hue="amber",
|