eaglelandsonce commited on
Commit
1c477d1
1 Parent(s): 716e117

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -9,6 +9,9 @@ from langchain.tools.yahoo_finance_news import YahooFinanceNewsTool
9
  from crewai.tools.browser_tools import BrowserTools
10
  from crewai.tools.sec_tools import SECTools
11
 
 
 
 
12
  from crewai import Agent, Task, Crew, Process
13
 
14
  os.environ["OPENAI_API_KEY"] = "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"
@@ -36,6 +39,7 @@ def crewai_process(research_topic):
36
  actionable insights.""",
37
  verbose=True,
38
  allow_delegation=False,
 
39
  tools=[
40
  GeminiSearchTools.gemini_search
41
  ]
@@ -48,7 +52,8 @@ def crewai_process(research_topic):
48
  and engaging articles on technology and innovation. With a deep understanding of
49
  the tech industry, you transform complex concepts into compelling narratives.""",
50
  verbose=True,
51
- allow_delegation=True
 
52
 
53
  # Add tools and other optional parameters as needed
54
  )
 
9
  from crewai.tools.browser_tools import BrowserTools
10
  from crewai.tools.sec_tools import SECTools
11
 
12
+ # Google Langchain
13
+ from langchain_google_genai import ChatGoogleGenerativeAI
14
+
15
  from crewai import Agent, Task, Crew, Process
16
 
17
  os.environ["OPENAI_API_KEY"] = "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"
 
39
  actionable insights.""",
40
  verbose=True,
41
  allow_delegation=False,
42
+ llm = ChatGoogleGenerativeAI(model="gemini-pro"),
43
  tools=[
44
  GeminiSearchTools.gemini_search
45
  ]
 
52
  and engaging articles on technology and innovation. With a deep understanding of
53
  the tech industry, you transform complex concepts into compelling narratives.""",
54
  verbose=True,
55
+ allow_delegation=True,
56
+ llm = ChatGoogleGenerativeAI(model="gemini-pro")
57
 
58
  # Add tools and other optional parameters as needed
59
  )