Spaces:
Running
Running
Update document_generator_v2.py
Browse files- document_generator_v2.py +2 -1
document_generator_v2.py
CHANGED
@@ -624,6 +624,7 @@ async def generate_document_outline_endpoint(
|
|
624 |
documents_list = await load_documents(documents)
|
625 |
# Store the documents_list in the cache
|
626 |
docs_cache_key = f"documents_list_{conversation_id}"
|
|
|
627 |
await FastAPICache.get_backend().set(docs_cache_key, documents_list, expire=3600) # Cache for 1 hour
|
628 |
|
629 |
# Generate document outline
|
@@ -631,7 +632,7 @@ async def generate_document_outline_endpoint(
|
|
631 |
query,
|
632 |
template,
|
633 |
image_context=image_context,
|
634 |
-
documents_context=documents_list
|
635 |
)
|
636 |
|
637 |
if json_document is None:
|
|
|
624 |
documents_list = await load_documents(documents)
|
625 |
# Store the documents_list in the cache
|
626 |
docs_cache_key = f"documents_list_{conversation_id}"
|
627 |
+
print("saving document as cache key:",docs_cache_key)
|
628 |
await FastAPICache.get_backend().set(docs_cache_key, documents_list, expire=3600) # Cache for 1 hour
|
629 |
|
630 |
# Generate document outline
|
|
|
632 |
query,
|
633 |
template,
|
634 |
image_context=image_context,
|
635 |
+
#documents_context=documents_list
|
636 |
)
|
637 |
|
638 |
if json_document is None:
|