Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -517,8 +517,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
517 |
gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[3]),
|
518 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
|
519 |
gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
|
520 |
-
use_web_search,
|
521 |
-
document_selector
|
522 |
],
|
523 |
title="Chat Interface",
|
524 |
description="Ask questions about your PDFs or use web search",
|
@@ -545,11 +544,11 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
545 |
gr.Markdown(
|
546 |
"""
|
547 |
## How to use
|
548 |
-
1. Use the "Use Web Search" checkbox to switch between PDF chat and web search.
|
549 |
2. Upload PDF documents using the file input at the bottom.
|
550 |
3. Select the PDF parser (pypdf or llamaparse) and click "Upload Document" to update the vector store.
|
551 |
4. Select the documents you want to query using the checkboxes.
|
552 |
-
5. Adjust Temperature and Number of API Calls to fine-tune the response generation.
|
553 |
6. Type your questions in the chat interface and press Enter to get responses.
|
554 |
7. Use the provided examples or ask your own questions.
|
555 |
"""
|
|
|
517 |
gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[3]),
|
518 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
|
519 |
gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
|
520 |
+
document_selector # Moved use_web_search out, kept document_selector here
|
|
|
521 |
],
|
522 |
title="Chat Interface",
|
523 |
description="Ask questions about your PDFs or use web search",
|
|
|
544 |
gr.Markdown(
|
545 |
"""
|
546 |
## How to use
|
547 |
+
1. Use the "Use Web Search" checkbox at the top to switch between PDF chat and web search.
|
548 |
2. Upload PDF documents using the file input at the bottom.
|
549 |
3. Select the PDF parser (pypdf or llamaparse) and click "Upload Document" to update the vector store.
|
550 |
4. Select the documents you want to query using the checkboxes.
|
551 |
+
5. Adjust Temperature and Number of API Calls in the Additional Inputs to fine-tune the response generation.
|
552 |
6. Type your questions in the chat interface and press Enter to get responses.
|
553 |
7. Use the provided examples or ask your own questions.
|
554 |
"""
|