Spaces:
Running
Running
Update document_generator_v3.py
Browse files- document_generator_v3.py +1 -1
document_generator_v3.py
CHANGED
@@ -485,7 +485,7 @@ async def generate_document_stream(document_generator: DocumentGenerator, docume
|
|
485 |
if image_context:
|
486 |
document_generator.content_messages[0]["content"] += f"<attached_images>\n\n{image_context}\n\n</attached_images>"
|
487 |
|
488 |
-
for section in document_generator.document_outline["Document"].get("
|
489 |
section_title = section.get("Title", "")
|
490 |
section_number = section.get("PageNumber", "")
|
491 |
content_instruction = section.get("Content", "")
|
|
|
485 |
if image_context:
|
486 |
document_generator.content_messages[0]["content"] += f"<attached_images>\n\n{image_context}\n\n</attached_images>"
|
487 |
|
488 |
+
for section in document_generator.document_outline["Document"].get("Pages", []):
|
489 |
section_title = section.get("Title", "")
|
490 |
section_number = section.get("PageNumber", "")
|
491 |
content_instruction = section.get("Content", "")
|