Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -167,8 +167,9 @@ def format_for_model(state):
|
|
167 |
user_id = config.get("user_id")
|
168 |
|
169 |
# Get files in the collection
|
|
|
170 |
collection_files = get_collection_files(collection_id, user_id) if collection_id and user_id else "No files available"
|
171 |
-
|
172 |
return prompt.invoke({
|
173 |
"collection_files": collection_files,
|
174 |
"messages": state["messages"]
|
|
|
167 |
user_id = config.get("user_id")
|
168 |
|
169 |
# Get files in the collection
|
170 |
+
|
171 |
collection_files = get_collection_files(collection_id, user_id) if collection_id and user_id else "No files available"
|
172 |
+
logging.info(f"fetching collection for userid{user_id} and collection_id {collection_id}|| Results {collection_files}")
|
173 |
return prompt.invoke({
|
174 |
"collection_files": collection_files,
|
175 |
"messages": state["messages"]
|