Spaces:
Sleeping
Sleeping
zeyadahmedd
commited on
Commit
•
9d813d5
1
Parent(s):
856fb94
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,8 @@ def architecture_with_chroma(data):
|
|
87 |
query = data_dict.get('query')
|
88 |
if query is None or query == "":
|
89 |
return "please enter a query to process"
|
90 |
-
|
|
|
91 |
collection = chroma_client.get_or_create_collection(name=id)
|
92 |
results = collection.query(
|
93 |
query_texts=[query],
|
|
|
87 |
query = data_dict.get('query')
|
88 |
if query is None or query == "":
|
89 |
return "please enter a query to process"
|
90 |
+
if(not os.path.exists(id)):
|
91 |
+
return "sorry ,there is no directory for this client"
|
92 |
collection = chroma_client.get_or_create_collection(name=id)
|
93 |
results = collection.query(
|
94 |
query_texts=[query],
|