Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -528,6 +528,16 @@ def display_documents():
|
|
528 |
label="Select documents to query"
|
529 |
)
|
530 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
531 |
# Define the checkbox outside the demo block
|
532 |
document_selector = gr.CheckboxGroup(label="Select documents to query")
|
533 |
|
|
|
528 |
label="Select documents to query"
|
529 |
)
|
530 |
|
531 |
+
def initial_conversation():
|
532 |
+
return [
|
533 |
+
(None, "Welcome! I'm your AI assistant for web search and PDF analysis. Here's how you can use me:\n\n"
|
534 |
+
"1. Set the toggle for Web Search and PDF Search from the checkbox in Additional Inputs drop down window\n"
|
535 |
+
"2. Use web search to find information\n"
|
536 |
+
"3. Ask questions about uploaded PDF documents\n"
|
537 |
+
"4. Generate summaries for specific entity types\n\n"
|
538 |
+
"To get started, upload some PDFs or ask me a question!")
|
539 |
+
]
|
540 |
+
|
541 |
# Define the checkbox outside the demo block
|
542 |
document_selector = gr.CheckboxGroup(label="Select documents to query")
|
543 |
|