svsaurav95 commited on
Commit
82e8790
Β·
verified Β·
1 Parent(s): da5b538

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -119,7 +119,7 @@ def generate_response(user_query, pdf_ticker, ai_ticker, mode, uploaded_file):
119
  return "Error generating response."
120
 
121
  st.markdown(
122
- "<h1 style='text-align: center; color: #4CAF50;'>πŸ“Š FinQuery RAG bot</h1>",
123
  unsafe_allow_html=True
124
  )
125
  st.markdown(
@@ -149,7 +149,7 @@ else:
149
  uploaded_file = None
150
  pdf_ticker = None
151
 
152
- if st.button("πŸš€ Analyze Now"):
153
  if mode == "πŸ“„ PDF Upload Mode" and (not uploaded_file or not pdf_ticker):
154
  st.error("❌ Please upload a PDF and enter a company ticker for insights.")
155
  elif mode == "🌍 Live Data Mode" and not ai_ticker:
 
119
  return "Error generating response."
120
 
121
  st.markdown(
122
+ "<h1 style='text-align: center; color: #4CAF50;'>πŸ“„ FinQuery RAG bot</h1>",
123
  unsafe_allow_html=True
124
  )
125
  st.markdown(
 
149
  uploaded_file = None
150
  pdf_ticker = None
151
 
152
+ if st.button("Analyze Now"):
153
  if mode == "πŸ“„ PDF Upload Mode" and (not uploaded_file or not pdf_ticker):
154
  st.error("❌ Please upload a PDF and enter a company ticker for insights.")
155
  elif mode == "🌍 Live Data Mode" and not ai_ticker: