ziadsameh32 commited on
Commit
4e571d8
·
1 Parent(s): d18f1b8

first commit

Browse files
agents/outliner_phase/Deep_Semantic_Topics_Generator_1.py CHANGED
@@ -113,6 +113,6 @@ research_task = Task(
113
  ),
114
  params={"min_topics": 10, "max_topics": 30}, # expand to ensure deeper coverage
115
  output_json=DeepSemanticTopicsOutput,
116
- output_file=os.path.join(output_dir, "deep_semantic_topics.json"),
117
  agent=research_agent,
118
  )
 
113
  ),
114
  params={"min_topics": 10, "max_topics": 30}, # expand to ensure deeper coverage
115
  output_json=DeepSemanticTopicsOutput,
116
+ # output_file=os.path.join(output_dir, "deep_semantic_topics.json"),
117
  agent=research_agent,
118
  )
agents/outliner_phase/module_organizer_3.py CHANGED
@@ -41,6 +41,6 @@ design_task = Task(
41
  "The output must be valid JSON, without markdown formatting or code blocks."
42
  ),
43
  output_json=CurriculumOutline,
44
- output_file=os.path.join(output_dir, "curriculum_outline.json"),
45
  agent=designer_agent,
46
  )
 
41
  "The output must be valid JSON, without markdown formatting or code blocks."
42
  ),
43
  output_json=CurriculumOutline,
44
+ # output_file=os.path.join(output_dir, "curriculum_outline.json"),
45
  agent=designer_agent,
46
  )
agents/outliner_phase/review_agent_4.py CHANGED
@@ -30,6 +30,6 @@ review_task = Task(
30
  "The output must be valid JSON, without markdown formatting or code blocks."
31
  ),
32
  output_json=CurriculumOutline,
33
- output_file=os.path.join(output_dir, "curriculum_outline_final.json"),
34
  agent=review_agent,
35
  )
 
30
  "The output must be valid JSON, without markdown formatting or code blocks."
31
  ),
32
  output_json=CurriculumOutline,
33
+ # output_file=os.path.join(output_dir, "curriculum_outline_final.json"),
34
  agent=review_agent,
35
  )
agents/outliner_phase/topic_expander_2.py CHANGED
@@ -38,6 +38,6 @@ structure_task = Task(
38
  "The output must be valid JSON, without markdown formatting or code blocks."
39
  ),
40
  output_json=ExpandedTopicsList,
41
- output_file=os.path.join(output_dir, "expanded_20_topics.json"),
42
  agent=structure_agent,
43
  )
 
38
  "The output must be valid JSON, without markdown formatting or code blocks."
39
  ),
40
  output_json=ExpandedTopicsList,
41
+ # output_file=os.path.join(output_dir, "expanded_20_topics.json"),
42
  agent=structure_agent,
43
  )
app.py CHANGED
@@ -1,12 +1,15 @@
1
  import os
2
 
3
- # fix for permission issue on Hugging Face or Docker
 
4
  os.environ["XDG_DATA_HOME"] = "/tmp/.local/share"
5
  os.environ["CREWAI_STORAGE_PATH"] = "/tmp/crewai_data"
 
6
 
7
- # optional but helpful
8
  os.makedirs("/tmp/.local/share", exist_ok=True)
9
  os.makedirs("/tmp/crewai_data", exist_ok=True)
 
10
 
11
  from crewai import Crew, Process
12
 
 
1
  import os
2
 
3
+ # Force HOME to /tmp so CrewAI doesn't try writing to /.local
4
+ os.environ["HOME"] = "/tmp"
5
  os.environ["XDG_DATA_HOME"] = "/tmp/.local/share"
6
  os.environ["CREWAI_STORAGE_PATH"] = "/tmp/crewai_data"
7
+ os.environ["CREWAI_HOME"] = "/tmp/crewai_home"
8
 
9
+ # Create safe directories
10
  os.makedirs("/tmp/.local/share", exist_ok=True)
11
  os.makedirs("/tmp/crewai_data", exist_ok=True)
12
+ os.makedirs("/tmp/crewai_home", exist_ok=True)
13
 
14
  from crewai import Crew, Process
15