Spaces:
Running
Running
Update app.py
Browse files
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;'
|
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("
|
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:
|