Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -204,7 +204,7 @@ def format_for_model(state):
|
|
204 |
|
205 |
# Get files in the collection
|
206 |
|
207 |
-
collection_files =
|
208 |
logger.info(f"fetching collection for userid{user_id} and collection_id {collection_id}|| Results {collection_files}")
|
209 |
return prompt.invoke({
|
210 |
"collection_files": collection_files,
|
|
|
204 |
|
205 |
# Get files in the collection
|
206 |
|
207 |
+
collection_files = get_collection_files(collection_id, user_id) if collection_id and user_id else "No files available" #get_current_files()#
|
208 |
logger.info(f"fetching collection for userid{user_id} and collection_id {collection_id}|| Results {collection_files}")
|
209 |
return prompt.invoke({
|
210 |
"collection_files": collection_files,
|