Spaces:
Sleeping
Sleeping
robertselvam
commited on
Commit
·
5b0b42e
1
Parent(s):
0db2a92
Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ class ChatDocumentQA:
|
|
135 |
vectorstore = self._create_vector_store_from_text_chunks(text_chunks)
|
136 |
return "file uploaded", {"knowledge_base": vectorstore}
|
137 |
elif file_extension == '.csv':
|
138 |
-
agent = create_agent(file_path)
|
139 |
tools = self.get_agent_tools(agent)
|
140 |
memory,tools,prompt = self.create_memory_for_csv_qa(tools)
|
141 |
agent_chain = self.create_agent_chain_for_csv_qa(memory,tools,prompt)
|
|
|
135 |
vectorstore = self._create_vector_store_from_text_chunks(text_chunks)
|
136 |
return "file uploaded", {"knowledge_base": vectorstore}
|
137 |
elif file_extension == '.csv':
|
138 |
+
agent = self.create_agent(file_path)
|
139 |
tools = self.get_agent_tools(agent)
|
140 |
memory,tools,prompt = self.create_memory_for_csv_qa(tools)
|
141 |
agent_chain = self.create_agent_chain_for_csv_qa(memory,tools,prompt)
|