Spaces:
Build error
Build error
fix: remove not
Browse files
planning_ai/chains/themes_chain.py
CHANGED
@@ -8,7 +8,7 @@ from planning_ai.common.utils import Paths
|
|
8 |
from planning_ai.llms.llm import GPT4o
|
9 |
|
10 |
# Read the chapter lines from the file
|
11 |
-
if
|
12 |
with open(Paths.RAW / "chapters.txt", "r") as f:
|
13 |
chapters = [line.strip() for line in f.readlines() if line.strip()]
|
14 |
else:
|
|
|
8 |
from planning_ai.llms.llm import GPT4o
|
9 |
|
10 |
# Read the chapter lines from the file
|
11 |
+
if (Paths.RAW / "chapters.txt").exists():
|
12 |
with open(Paths.RAW / "chapters.txt", "r") as f:
|
13 |
chapters = [line.strip() for line in f.readlines() if line.strip()]
|
14 |
else:
|