Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -157,12 +157,17 @@ if st.button("π Analyze Now"):
|
|
157 |
elif mode == "π Live Data Mode" and not company_ticker:
|
158 |
st.error("β Please enter a valid company ticker symbol.")
|
159 |
else:
|
160 |
-
with st.spinner("π Your Query is Processing, this can take
|
161 |
-
|
|
|
|
|
|
|
|
|
162 |
st.markdown("---")
|
163 |
st.markdown("<h3 style='color: #4CAF50;'>π‘ AI Response</h3>", unsafe_allow_html=True)
|
164 |
st.write(response)
|
165 |
|
|
|
166 |
# π Footer
|
167 |
st.markdown("---")
|
168 |
|
|
|
157 |
elif mode == "π Live Data Mode" and not company_ticker:
|
158 |
st.error("β Please enter a valid company ticker symbol.")
|
159 |
else:
|
160 |
+
with st.spinner("π Your Query is Processing, this can take up to 5 - 7 minutes β³"):
|
161 |
+
if mode == "π PDF Upload Mode":
|
162 |
+
response = generate_response(user_query, company_ticker, None, mode, uploaded_file)
|
163 |
+
else:
|
164 |
+
response = generate_response(user_query, None, company_ticker, mode, uploaded_file)
|
165 |
+
|
166 |
st.markdown("---")
|
167 |
st.markdown("<h3 style='color: #4CAF50;'>π‘ AI Response</h3>", unsafe_allow_html=True)
|
168 |
st.write(response)
|
169 |
|
170 |
+
|
171 |
# π Footer
|
172 |
st.markdown("---")
|
173 |
|