pvanand commited on
Commit
1442d27
·
verified ·
1 Parent(s): 860cc61

Update document_generator_v3.py

Browse files
Files changed (1) hide show
  1. 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("Sections", []):
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", "")