Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -49,10 +49,10 @@ async def chat(query,history,sources,reports):
|
|
49 |
if len(reports) == 0:
|
50 |
reports = []
|
51 |
|
52 |
-
if sources == ["
|
53 |
-
vectorstore = vectorstores["
|
54 |
else:
|
55 |
-
vectorstore = vectorstores["
|
56 |
|
57 |
# get context
|
58 |
context_retrieved_lst = []
|
|
|
49 |
if len(reports) == 0:
|
50 |
reports = []
|
51 |
|
52 |
+
if sources == ["Ministry"]:
|
53 |
+
vectorstore = vectorstores["MWTS"]
|
54 |
else:
|
55 |
+
vectorstore = vectorstores["Consolidated"]
|
56 |
|
57 |
# get context
|
58 |
context_retrieved_lst = []
|