Update app/streamlit_app.py
Browse files- app/streamlit_app.py +2 -1
app/streamlit_app.py
CHANGED
|
@@ -114,7 +114,7 @@ if page == "Prediction":
|
|
| 114 |
|
| 115 |
try:
|
| 116 |
with st.spinner("Analyzing threat vectors..."):
|
| 117 |
-
response = requests.post(API_URL, json=payload, timeout=
|
| 118 |
result = response.json()
|
| 119 |
|
| 120 |
prob = result["fraud_probability"]
|
|
@@ -135,6 +135,7 @@ if page == "Prediction":
|
|
| 135 |
|
| 136 |
except Exception as e:
|
| 137 |
st.error(f"⏳ Error connecting to API: {e}")
|
|
|
|
| 138 |
|
| 139 |
# --- NEW SHAP PAGE ---
|
| 140 |
elif page == "Explainability (SHAP)":
|
|
|
|
| 114 |
|
| 115 |
try:
|
| 116 |
with st.spinner("Analyzing threat vectors..."):
|
| 117 |
+
response = requests.post(API_URL, json=payload, timeout=50)
|
| 118 |
result = response.json()
|
| 119 |
|
| 120 |
prob = result["fraud_probability"]
|
|
|
|
| 135 |
|
| 136 |
except Exception as e:
|
| 137 |
st.error(f"⏳ Error connecting to API: {e}")
|
| 138 |
+
st.info("server is waking up wait,please")
|
| 139 |
|
| 140 |
# --- NEW SHAP PAGE ---
|
| 141 |
elif page == "Explainability (SHAP)":
|