eaglelandsonce commited on
Commit
1c9438b
1 Parent(s): 9756727

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -15
app.py CHANGED
@@ -19,24 +19,21 @@ os.environ["OPENAI_API_KEY"] = "sk-bJdQqnZ3cw4Ju9Utc33AT3BlbkFJPnMrwv8n4OsDt1hAQ
19
 
20
 
21
  # Base Example with Gemini Search
22
- '''
23
  def crewai_process(research_topic):
24
  # Define your agents with roles and goals
25
  researcher = Agent(
26
  role='Senior Research Analyst',
27
- goal=f'Uncover cutting-edge developments in AI and data science in {research_topic}',
28
- backstory="""You are a Senior Research Analyst at a leading tech think tank.
29
- Your expertise lies in identifying emerging trends and technologies in AI and
30
- data science. You have a knack for dissecting complex data and presenting
31
  actionable insights.""",
32
  verbose=True,
33
  allow_delegation=False,
34
  tools=[
35
  GeminiSearchTools.gemini_search,
36
- YahooFinanceNewsTool(),
37
- BrowserTools.scrape_and_summarize_website,
38
- SECTools.search_10q,
39
- SECTools.search_10k
40
  ]
41
  )
42
  writer = Agent(
@@ -53,15 +50,14 @@ def crewai_process(research_topic):
53
 
54
  # Create tasks for your agents
55
  task1 = Task(
56
- description=f"""Conduct a comprehensive analysis of the latest advancements in AI in 2024.
57
- Identify key trends, breakthrough technologies, and potential industry impacts in {research_topic}.
58
  Compile your findings in a detailed report. Your final answer MUST be a full analysis report""",
59
  agent=researcher
60
  )
61
 
62
  task2 = Task(
63
  description="""Using the insights from the researcher's report, develop an engaging blog
64
- post that highlights the most significant AI advancements.
65
  Your post should be informative yet accessible, catering to a tech-savvy audience.
66
  Aim for a narrative that captures the essence of these breakthroughs and their
67
  implications for the future. Your final answer MUST be the full blog post of at least 3 paragraphs.""",
@@ -93,12 +89,12 @@ iface = gr.Interface(
93
  # Launch the interface
94
  iface.launch()
95
 
96
- '''
97
 
98
  # Stock Evaluation
99
 
100
 
101
-
102
  from stock_analysis_agents import StockAnalysisAgents
103
  from stock_analysis_tasks import StockAnalysisTasks
104
 
@@ -149,7 +145,7 @@ iface = gr.Interface(
149
  #if __name__ == "__main__":
150
  iface.launch()
151
 
152
-
153
 
154
 
155
  # Therapy Group
 
19
 
20
 
21
  # Base Example with Gemini Search
22
+
23
  def crewai_process(research_topic):
24
  # Define your agents with roles and goals
25
  researcher = Agent(
26
  role='Senior Research Analyst',
27
+ goal=f'Uncover cutting-edge developments in {research_topic}',
28
+ backstory="""You are a Senior Research Analyst at a leading think tank.
29
+ Your expertise lies in identifying emerging trends. You have a knack for dissecting complex data and presenting
 
30
  actionable insights.""",
31
  verbose=True,
32
  allow_delegation=False,
33
  tools=[
34
  GeminiSearchTools.gemini_search,
35
+ BrowserTools.scrape_and_summarize_website
36
+
 
 
37
  ]
38
  )
39
  writer = Agent(
 
50
 
51
  # Create tasks for your agents
52
  task1 = Task(
53
+ description=f"""Conduct a comprehensive analysis of the latest advancements in {research_topic}.
 
54
  Compile your findings in a detailed report. Your final answer MUST be a full analysis report""",
55
  agent=researcher
56
  )
57
 
58
  task2 = Task(
59
  description="""Using the insights from the researcher's report, develop an engaging blog
60
+ post that highlights the most significant advancements.
61
  Your post should be informative yet accessible, catering to a tech-savvy audience.
62
  Aim for a narrative that captures the essence of these breakthroughs and their
63
  implications for the future. Your final answer MUST be the full blog post of at least 3 paragraphs.""",
 
89
  # Launch the interface
90
  iface.launch()
91
 
92
+
93
 
94
  # Stock Evaluation
95
 
96
 
97
+ '''
98
  from stock_analysis_agents import StockAnalysisAgents
99
  from stock_analysis_tasks import StockAnalysisTasks
100
 
 
145
  #if __name__ == "__main__":
146
  iface.launch()
147
 
148
+ '''
149
 
150
 
151
  # Therapy Group