eaglelandsonce commited on
Commit
266c0a0
1 Parent(s): 3ae4b17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -13
app.py CHANGED
@@ -48,7 +48,7 @@ if not GOOGLE_AI_STUDIO:
48
  raise ValueError("API key not found. Please set the GOOGLE_AI_STUDIO2 environment variable.")
49
 
50
 
51
- STEP1_TITLE = """<h1 align="center">Click Link <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
 
@@ -632,30 +632,26 @@ with gr.Blocks() as demo:
632
  gr.HTML(STEP3_TITLE)
633
  with gr.Blocks() as app:
634
 
635
-
636
-
637
  with gr.Row():
638
  start_date = gr.Textbox("2013-01-01", label="Start Date")
639
  end_date = gr.Textbox(datetime.datetime.now().date(), label="End Date")
640
  with gr.Row():
641
  gr.HTML("<h1>Example Portfolios</h1>")
 
642
  btn1 = gr.Button("Conservative")
643
- ticker_string_conservative = gr.Textbox("KO,PG,JNJ,VZ,PFE,MCD,WMT,MMM,SO,DUK")
644
- with gr.Row():
645
  btn2 = gr.Button("Growth")
646
- ticker_string_growth = gr.Textbox("AAPL,AMZN,TSLA,NVDA,GOOGL,MSFT,NFLX,V,MA,CRM")
647
  with gr.Row():
648
  btn3 = gr.Button("Balanced")
649
- ticker_string_balanced = gr.Textbox("AAPL,JPM,JNJ,PG,KO,MSFT,PFE,VZ,MMM,WMT")
650
- with gr.Row():
651
  btn4 = gr.Button("Agressive")
652
- ticker_string_agressive = gr.Textbox("TSLA,AMZN,NVDA,GOOGL,SHOP,SQ,MRNA,ZM,SNOW,PTON")
653
 
654
  with gr.Row():
655
- gr.HTML("<h1>Adjust Portfolio </h1>")
656
- ticker_string = gr.Textbox("AAPL,AMZN,TSLA,NVDA,GOOGL,MSFT,NFLX,V,MA,CRM",
657
- label='Enter all stock tickers to be included in portfolio separated \
658
- by commas WITHOUT spaces, e.g. "AAPL,AMZN,TSLA,NVDA,GOOGL,MSFT,NFLX,V,MA,CRM"')
659
  with gr.Row():
660
  btn = gr.Button("Get Optimized Portfolio")
661
 
 
48
  raise ValueError("API key not found. Please set the GOOGLE_AI_STUDIO2 environment variable.")
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
 
 
632
  gr.HTML(STEP3_TITLE)
633
  with gr.Blocks() as app:
634
 
 
 
635
  with gr.Row():
636
  start_date = gr.Textbox("2013-01-01", label="Start Date")
637
  end_date = gr.Textbox(datetime.datetime.now().date(), label="End Date")
638
  with gr.Row():
639
  gr.HTML("<h1>Example Portfolios</h1>")
640
+ with gr.Row():
641
  btn1 = gr.Button("Conservative")
642
+ ticker_string_conservative = gr.Textbox("KO,PG,JNJ,VZ,PFE,MCD,WMT,MMM,SO,DUK", label='Conservative')
 
643
  btn2 = gr.Button("Growth")
644
+ ticker_string_growth = gr.Textbox("AAPL,AMZN,TSLA,NVDA,GOOGL,MSFT,NFLX,V,MA,CRM", label='Growth')
645
  with gr.Row():
646
  btn3 = gr.Button("Balanced")
647
+ ticker_string_balanced = gr.Textbox("AAPL,JPM,JNJ,PG,KO,MSFT,PFE,VZ,MMM,WMT", label='Balanced')
 
648
  btn4 = gr.Button("Agressive")
649
+ ticker_string_agressive = gr.Textbox("TSLA,AMZN,NVDA,GOOGL,SHOP,SQ,MRNA,ZM,SNOW,PTON", label='Agressive')
650
 
651
  with gr.Row():
652
+ gr.HTML("<h1>Adjusted Portfolio </h1>")
653
+ with gr.Row():
654
+ ticker_string = gr.Textbox("AAPL,AMZN,TSLA,NVDA,GOOGL,MSFT,NFLX,V,MA,CRM", label='Adjusted')
 
655
  with gr.Row():
656
  btn = gr.Button("Get Optimized Portfolio")
657