eaglelandsonce commited on
Commit
a562d9c
1 Parent(s): a293459

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -26,7 +26,7 @@ if not GOOGLE_AI_STUDIO:
26
  raise ValueError("API key not found. Please set the GOOGLE_AI_STUDIO2 environment variable.")
27
 
28
 
29
- llm = GoogleGenerativeAI(model="models/text-bison-001", google_api_key=GOOGLE_AI_STUDIO)
30
 
31
  # os.environ["OPENAI_API_KEY"] = "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"
32
 
@@ -54,6 +54,7 @@ def crewai_process(research_topic):
54
  actionable insights.""",
55
  verbose=True,
56
  allow_delegation=False,
 
57
  tools=[
58
  GeminiSearchTools.gemini_search
59
  ]
@@ -66,7 +67,8 @@ def crewai_process(research_topic):
66
  and engaging articles on technology and innovation. With a deep understanding of
67
  the tech industry, you transform complex concepts into compelling narratives.""",
68
  verbose=True,
69
- allow_delegation=True
 
70
 
71
  # Add tools and other optional parameters as needed
72
  )
 
26
  raise ValueError("API key not found. Please set the GOOGLE_AI_STUDIO2 environment variable.")
27
 
28
 
29
+ gemini_llm = GoogleGenerativeAI(model="models/text-bison-001", google_api_key=GOOGLE_AI_STUDIO)
30
 
31
  # os.environ["OPENAI_API_KEY"] = "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"
32
 
 
54
  actionable insights.""",
55
  verbose=True,
56
  allow_delegation=False,
57
+ llm = gemini_llm,
58
  tools=[
59
  GeminiSearchTools.gemini_search
60
  ]
 
67
  and engaging articles on technology and innovation. With a deep understanding of
68
  the tech industry, you transform complex concepts into compelling narratives.""",
69
  verbose=True,
70
+ allow_delegation=True,
71
+ llm = gemini_llm
72
 
73
  # Add tools and other optional parameters as needed
74
  )