bstraehle commited on
Commit
31b966b
·
verified ·
1 Parent(s): 7fcd720

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -5,7 +5,9 @@ from crew import get_crew
5
 
6
  lock = threading.Lock()
7
 
8
- LLM = "gpt-4o"
 
 
9
  VERBOSE = False
10
 
11
  def invoke(openai_api_key, topic):
@@ -19,7 +21,8 @@ def invoke(openai_api_key, topic):
19
  with lock:
20
  os.environ["OPENAI_API_KEY"] = openai_api_key
21
 
22
- article = str(get_crew(LLM, VERBOSE).kickoff(inputs={"topic": topic}))
 
23
 
24
  print("===")
25
  print(article)
 
5
 
6
  lock = threading.Lock()
7
 
8
+ #LLM = "gpt-4o"
9
+ LLM_manager = "o1"
10
+ LLM_agents = "gpt-4o"
11
  VERBOSE = False
12
 
13
  def invoke(openai_api_key, topic):
 
21
  with lock:
22
  os.environ["OPENAI_API_KEY"] = openai_api_key
23
 
24
+ #article = str(get_crew(LLM, VERBOSE).kickoff(inputs={"topic": topic}))
25
+ article = str(get_crew(LLM_manager, LLM_agents, VERBOSE).kickoff(inputs={"topic": topic}))
26
 
27
  print("===")
28
  print(article)