This commit is contained in:
Saifeddine ALOUI 2024-06-01 21:28:50 +02:00
parent efcded6b2d
commit 9f3b2f606d

View File

@ -67,7 +67,7 @@ def start_writing_story(prompt_ideas: str, llm: Any, story_file_path: str, build
final_story_content = "" final_story_content = ""
for section in story_plan["sections"]: for section in story_plan["sections"]:
llm.step_start(f"Building section: {section["section_name"]}") llm.step_start(f'Building section: {section["section_name"]}')
section_name = section["section_name"] section_name = section["section_name"]
section_description = section["section_description"] section_description = section["section_description"]
@ -81,7 +81,7 @@ def start_writing_story(prompt_ideas: str, llm: Any, story_file_path: str, build
) )
final_story_content += f"\n## {section_name}\n\n{new_section}\n" final_story_content += f"\n## {section_name}\n\n{new_section}\n"
llm.step_end(f"Building section: {section["section_name"]}") llm.step_end(f'Building section: {section["section_name"]}')
if build_latex: if build_latex:
llm.step_start("Building latex file") llm.step_start("Building latex file")