ahmadsanafarooq commited on
Commit
14376b2
·
verified ·
1 Parent(s): e1b83d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -4,6 +4,7 @@ import sys
4
  from crewai import Agent, Task, Crew, Process
5
  from crewai_tools import SerperDevTool
6
  from crewai.tools import BaseTool
 
7
 
8
  # 1. Page Configuration
9
  st.set_page_config(page_title="Smart Relocation Assistant", page_icon="🏘️")
@@ -109,13 +110,15 @@ if openai_api_key and serper_api_key:
109
  expected_output="Markdown formatted relocation guide.",
110
  agent=budget_analyst
111
  )
 
112
 
113
  # --- CREW EXECUTION ---
114
- relocation_crew = Crew(
115
- agents=[city_scout, budget_analyst],
116
- tasks=[scout_task, analysis_task, report_task],
117
- process=Process.sequential
118
- )
 
119
 
120
  result = relocation_crew.kickoff()
121
 
 
4
  from crewai import Agent, Task, Crew, Process
5
  from crewai_tools import SerperDevTool
6
  from crewai.tools import BaseTool
7
+ from langchain_openai import ChatOpenAI
8
 
9
  # 1. Page Configuration
10
  st.set_page_config(page_title="Smart Relocation Assistant", page_icon="🏘️")
 
110
  expected_output="Markdown formatted relocation guide.",
111
  agent=budget_analyst
112
  )
113
+ gpt_4o_mini = ChatOpenAI(model="gpt-4o-mini",temperature=0.7)
114
 
115
  # --- CREW EXECUTION ---
116
+ relocation_crew = Crew(agents=[city_scout, budget_analyst],
117
+ tasks=[scout_task, analysis_task, report_task],
118
+ process=Process.sequential,
119
+ # PASS THE LLM HERE
120
+ llm=gpt_4o_mini
121
+ )
122
 
123
  result = relocation_crew.kickoff()
124