Shivam4096 commited on
Commit
de1ea72
·
verified ·
1 Parent(s): 04250b6

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. web_app/app.py +6 -2
web_app/app.py CHANGED
@@ -10,6 +10,11 @@ import time
10
  import datetime
11
  from pathlib import Path
12
  import streamlit as st
 
 
 
 
 
13
 
14
  # Setup sys.path so local packages can be resolved from parent directory
15
  PARENT_DIR = Path(__file__).parent.parent
@@ -215,7 +220,6 @@ st.sidebar.markdown("---")
215
  st.markdown("<h1 class='dashboard-title'>📈 Financial Statement Analyzer</h1>", unsafe_allow_html=True)
216
  st.markdown("<p class='dashboard-subtitle'>Multi-model AI insights scraper and report compilation portal</p>", unsafe_allow_html=True)
217
 
218
- st.markdown("<div class='glass-card'>", unsafe_allow_html=True)
219
  st.subheader("Analysis Parameters")
220
 
221
  # -- Ticker Search & Suggestion Logic --
@@ -319,7 +323,7 @@ if not groq_key and not gemini_key:
319
 
320
  st.markdown("<br>", unsafe_allow_html=True)
321
  start_btn = st.button("Begin Financial Scrape & Analysis")
322
- st.markdown("</div>", unsafe_allow_html=True)
323
 
324
  progress_bar_container = st.empty()
325
  status_container = st.empty()
 
10
  import datetime
11
  from pathlib import Path
12
  import streamlit as st
13
+ from dotenv import load_dotenv
14
+
15
+ # Load environment variables early so keys can be hidden from UI
16
+ _ENV_PATH = Path(__file__).parent.parent / ".env"
17
+ load_dotenv(_ENV_PATH)
18
 
19
  # Setup sys.path so local packages can be resolved from parent directory
20
  PARENT_DIR = Path(__file__).parent.parent
 
220
  st.markdown("<h1 class='dashboard-title'>📈 Financial Statement Analyzer</h1>", unsafe_allow_html=True)
221
  st.markdown("<p class='dashboard-subtitle'>Multi-model AI insights scraper and report compilation portal</p>", unsafe_allow_html=True)
222
 
 
223
  st.subheader("Analysis Parameters")
224
 
225
  # -- Ticker Search & Suggestion Logic --
 
323
 
324
  st.markdown("<br>", unsafe_allow_html=True)
325
  start_btn = st.button("Begin Financial Scrape & Analysis")
326
+ st.markdown("<br>", unsafe_allow_html=True)
327
 
328
  progress_bar_container = st.empty()
329
  status_container = st.empty()