Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,8 +29,8 @@ def build_rag_agent(pdf_path):
|
|
| 29 |
return RetrievalQA.from_chain_type(llm=llm, retriever=retriever, chain_type="stuff")
|
| 30 |
|
| 31 |
# β
Create RAG agents for course syllabi
|
| 32 |
-
stat6371_agent = build_rag_agent("/content/drive/MyDrive/PDFs/
|
| 33 |
-
ds6306_agent = build_rag_agent("/content/drive/MyDrive/PDFs/
|
| 34 |
|
| 35 |
# β
Load Hugging Face fine-tuned model for general statistics questions
|
| 36 |
general_stat_agent = pipeline("text2text-generation", model="google/flan-t5-base") # Replace with your model
|
|
|
|
| 29 |
return RetrievalQA.from_chain_type(llm=llm, retriever=retriever, chain_type="stuff")
|
| 30 |
|
| 31 |
# β
Create RAG agents for course syllabi
|
| 32 |
+
stat6371_agent = build_rag_agent("/content/drive/MyDrive/PDFs/ds6371syllabusVer7.pdf")
|
| 33 |
+
ds6306_agent = build_rag_agent("/content/drive/MyDrive/PDFs/DDSSyllabus2025.pdf")
|
| 34 |
|
| 35 |
# β
Load Hugging Face fine-tuned model for general statistics questions
|
| 36 |
general_stat_agent = pipeline("text2text-generation", model="google/flan-t5-base") # Replace with your model
|