Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -166,7 +166,7 @@ async def format_for_model(state):
|
|
166 |
user_id = config.get("user_id")
|
167 |
|
168 |
# Get files in the collection
|
169 |
-
collection_files =
|
170 |
|
171 |
return prompt.invoke({
|
172 |
"collection_files": collection_files,
|
|
|
166 |
user_id = config.get("user_id")
|
167 |
|
168 |
# Get files in the collection
|
169 |
+
collection_files = get_collection_files(collection_id, user_id) if collection_id and user_id else "No files available"
|
170 |
|
171 |
return prompt.invoke({
|
172 |
"collection_files": collection_files,
|