Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ async def chat(query,history,sources,reports,subtype,year):
|
|
104 |
|
105 |
##------------------------decide which collection to fetch------------------------------
|
106 |
if len(reports) == 0:
|
107 |
-
vectorstore = vectorstores[
|
108 |
else:
|
109 |
vectorstore = vectorstores["allreports"]
|
110 |
|
|
|
104 |
|
105 |
##------------------------decide which collection to fetch------------------------------
|
106 |
if len(reports) == 0:
|
107 |
+
vectorstore = vectorstores[sources]
|
108 |
else:
|
109 |
vectorstore = vectorstores["allreports"]
|
110 |
|