eaglelandsonce commited on
Commit
7f6abc4
1 Parent(s): 84ee14e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -49,7 +49,7 @@ if not GOOGLE_AI_STUDIO:
49
 
50
 
51
  STEP1_TITLE = """<h1 align="center"><a href="https://chat.openai.com/g/g-3ZNjAmguz-portfolio-investment-advisor">Custom GPT Portfolio Generator</a></h1>"""
52
- STEP2_TITLE = """<h1 align="center">Create a Financial OutLook Report of Your Portfolio</h1>"""
53
  STEP3_TITLE = """<h1 align="center">Optimize Your Portfolio to Maximize Return</h1>"""
54
 
55
 
@@ -484,7 +484,8 @@ def crewai_process(portfolio_stocks):
484
  allow_delegation=False,
485
  llm = gemini_llm,
486
  tools=[
487
- GeminiSearchTools.gemini_search
 
488
  ]
489
 
490
  )
@@ -499,7 +500,8 @@ def crewai_process(portfolio_stocks):
499
  allow_delegation=True,
500
  llm = gemini_llm,
501
  tools=[
502
- GeminiSearchTools.gemini_search
 
503
  ]
504
 
505
  # Add tools and other optional parameters as needed
@@ -744,7 +746,7 @@ with gr.Blocks() as demo:
744
  run_button_crewai = gr.Button(value="Run", variant="primary", scale=1)
745
  run_button_crewai.click(
746
  fn=crewai_process,
747
- inputs=gr.Textbox(lines=2, placeholder="Analyze Stock..."),
748
  outputs=gr.Textbox(label="Stock Analysis")
749
  )
750
 
 
49
 
50
 
51
  STEP1_TITLE = """<h1 align="center"><a href="https://chat.openai.com/g/g-3ZNjAmguz-portfolio-investment-advisor">Custom GPT Portfolio Generator</a></h1>"""
52
+ STEP2_TITLE = """<h1 align="center">Perform Analysis on Individual Stocks</h1>"""
53
  STEP3_TITLE = """<h1 align="center">Optimize Your Portfolio to Maximize Return</h1>"""
54
 
55
 
 
484
  allow_delegation=False,
485
  llm = gemini_llm,
486
  tools=[
487
+ GeminiSearchTools.gemini_search,
488
+ YahooFinanceNewsTool()
489
  ]
490
 
491
  )
 
500
  allow_delegation=True,
501
  llm = gemini_llm,
502
  tools=[
503
+ GeminiSearchTools.gemini_search,
504
+ YahooFinanceNewsTool()
505
  ]
506
 
507
  # Add tools and other optional parameters as needed
 
746
  run_button_crewai = gr.Button(value="Run", variant="primary", scale=1)
747
  run_button_crewai.click(
748
  fn=crewai_process,
749
+ inputs=gr.Textbox(lines=2, placeholder="Analyze Stock...", label="Input Stock to be analyzed"),
750
  outputs=gr.Textbox(label="Stock Analysis")
751
  )
752