Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,7 +124,7 @@ def generate_response(user_query, pdf_ticker, ai_ticker, mode, uploaded_file):
|
|
| 124 |
return "Error generating response."
|
| 125 |
|
| 126 |
st.markdown(
|
| 127 |
-
"<h1 style='text-align: center; color: #4CAF50;'>
|
| 128 |
unsafe_allow_html=True
|
| 129 |
)
|
| 130 |
st.markdown(
|
|
@@ -139,7 +139,7 @@ with col1:
|
|
| 139 |
mode = st.radio("", ["π PDF Upload Mode", "π Live Data Mode"], horizontal=True)
|
| 140 |
|
| 141 |
with col2:
|
| 142 |
-
st.markdown("###
|
| 143 |
user_query = st.text_input("π¬ What financial insights are you looking for?")
|
| 144 |
|
| 145 |
st.markdown("---")
|
|
@@ -162,7 +162,7 @@ if st.button("Analyze Now"):
|
|
| 162 |
elif mode == "π Live Data Mode" and not company_ticker:
|
| 163 |
st.error("β Please enter a valid company ticker symbol.")
|
| 164 |
else:
|
| 165 |
-
with st.spinner("
|
| 166 |
if mode == "π PDF Upload Mode":
|
| 167 |
response = generate_response(user_query, company_ticker, None, mode, uploaded_file)
|
| 168 |
else:
|
|
|
|
| 124 |
return "Error generating response."
|
| 125 |
|
| 126 |
st.markdown(
|
| 127 |
+
"<h1 style='text-align: center; color: #4CAF50;'> FinQuery RAG Chatbot</h1>",
|
| 128 |
unsafe_allow_html=True
|
| 129 |
)
|
| 130 |
st.markdown(
|
|
|
|
| 139 |
mode = st.radio("", ["π PDF Upload Mode", "π Live Data Mode"], horizontal=True)
|
| 140 |
|
| 141 |
with col2:
|
| 142 |
+
st.markdown("### **Enter Your Query**")
|
| 143 |
user_query = st.text_input("π¬ What financial insights are you looking for?")
|
| 144 |
|
| 145 |
st.markdown("---")
|
|
|
|
| 162 |
elif mode == "π Live Data Mode" and not company_ticker:
|
| 163 |
st.error("β Please enter a valid company ticker symbol.")
|
| 164 |
else:
|
| 165 |
+
with st.spinner(" Your Query is Processing, this can take up to 5 - 7 minutes β³"):
|
| 166 |
if mode == "π PDF Upload Mode":
|
| 167 |
response = generate_response(user_query, company_ticker, None, mode, uploaded_file)
|
| 168 |
else:
|