Spaces:
Running
Running
Update run.py
Browse files
run.py
CHANGED
@@ -158,6 +158,8 @@ def multimodalResponse(message,history,headerPattern,sentenceWiseSplitting):
|
|
158 |
query=message["text"]
|
159 |
if(len(message["files"])>0): # is there at least one file attached?
|
160 |
collection=add_doc(message["files"][0])
|
|
|
|
|
161 |
client = chromadb.PersistentClient(path="output/general_knowledge")
|
162 |
print(str(client.list_collections()))
|
163 |
x=collection.get(include=[])["ids"]
|
|
|
158 |
query=message["text"]
|
159 |
if(len(message["files"])>0): # is there at least one file attached?
|
160 |
collection=add_doc(message["files"][0])
|
161 |
+
else:
|
162 |
+
collection=add_doc(message["text"])
|
163 |
client = chromadb.PersistentClient(path="output/general_knowledge")
|
164 |
print(str(client.list_collections()))
|
165 |
x=collection.get(include=[])["ids"]
|