Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -688,7 +688,7 @@ Feel free to ask any question related to Bidenβs 2023 State of the Union Addre
|
|
| 688 |
demo_description3 = """
|
| 689 |
**Context**:
|
| 690 |
Upload a PDF, TXT, or DOCX file and ask a question about its content.
|
| 691 |
-
This demo uses GPT-
|
| 692 |
|
| 693 |
Feel free to ask any question related to your document.
|
| 694 |
"""
|
|
@@ -699,14 +699,32 @@ Upload a PDF, TXT, or DOCX file to get a concise, structured summary of its cont
|
|
| 699 |
"""
|
| 700 |
demo_description5 = """
|
| 701 |
**Context**:
|
| 702 |
-
This
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
| 706 |
-
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 710 |
"""
|
| 711 |
|
| 712 |
demo = gr.TabbedInterface(
|
|
@@ -757,8 +775,8 @@ demo = gr.TabbedInterface(
|
|
| 757 |
],
|
| 758 |
tab_names=[
|
| 759 |
"Biden Q&A (LLaMA)",
|
| 760 |
-
"Biden Q&A (GPT-
|
| 761 |
-
"Your Docs Q&A (Upload + GPT-
|
| 762 |
"Document Summarization",
|
| 763 |
"Multi-Agent AI Assistant"
|
| 764 |
],
|
|
|
|
| 688 |
demo_description3 = """
|
| 689 |
**Context**:
|
| 690 |
Upload a PDF, TXT, or DOCX file and ask a question about its content.
|
| 691 |
+
This demo uses GPT-4o-Mini to answer questions based on the content of your uploaded document.
|
| 692 |
|
| 693 |
Feel free to ask any question related to your document.
|
| 694 |
"""
|
|
|
|
| 699 |
"""
|
| 700 |
demo_description5 = """
|
| 701 |
**Context**:
|
| 702 |
+
This demo presents a GPT-style Multi-Agent AI Assistant, built with **LangChain, CrewAI**, and **RAG (Retrieval-Augmented Generation)**.
|
| 703 |
+
|
| 704 |
+
The system automatically understands your intent and routes the query to the best expert agent, enabling dynamic **multi-agent orchestration**.
|
| 705 |
+
|
| 706 |
+
Supported features:
|
| 707 |
+
|
| 708 |
+
- π **Document Summarisation** (PDF, DOCX, TXT)
|
| 709 |
+
- β **FAQ-style Q&A based on uploaded documents**
|
| 710 |
+
- π **Live Web Search** (Online Retrieval-Augmented Generation)
|
| 711 |
+
- π
**Real-time Date & Time**
|
| 712 |
+
- β **Math and Logic Calculations**
|
| 713 |
+
- π¬ **General Chatting / Reasoning**
|
| 714 |
+
|
| 715 |
+
Just type a question or upload a file. The assistant figures out the rest.
|
| 716 |
+
|
| 717 |
+
> *Note: CSV file analysis is coming soon.*
|
| 718 |
+
|
| 719 |
+
---
|
| 720 |
+
|
| 721 |
+
**Sample Questions**:
|
| 722 |
+
1. Can you summarise this document in 3 bullet points?
|
| 723 |
+
2. What are the key ideas mentioned in this file?
|
| 724 |
+
3. What is LangChain used for? *(β Web Retrieval)*
|
| 725 |
+
4. What's the current time in London? *(β Time Agent)*
|
| 726 |
+
5. What is 25 * (12 + 3)? *(β Math Agent)*
|
| 727 |
+
6. Tell me a fun fact about AI. *(β General Chat Agent)*
|
| 728 |
"""
|
| 729 |
|
| 730 |
demo = gr.TabbedInterface(
|
|
|
|
| 775 |
],
|
| 776 |
tab_names=[
|
| 777 |
"Biden Q&A (LLaMA)",
|
| 778 |
+
"Biden Q&A (GPT-4o-Mini)",
|
| 779 |
+
"Your Docs Q&A (Upload + GPT-4o-Mini)",
|
| 780 |
"Document Summarization",
|
| 781 |
"Multi-Agent AI Assistant"
|
| 782 |
],
|