Spaces:
Sleeping
Sleeping
Update slapp.py
Browse files
slapp.py
CHANGED
|
@@ -91,8 +91,10 @@ if st.button("Predict"):
|
|
| 91 |
if response.status_code == 200:
|
| 92 |
result = response.json().get("prediction")
|
| 93 |
if result == "Acceptable transaction":
|
|
|
|
| 94 |
st.success("✅ " + result)
|
| 95 |
else:
|
|
|
|
| 96 |
st.error("🚨 " + result)
|
| 97 |
else:
|
| 98 |
st.error("Error: " + response.text)
|
|
|
|
| 91 |
if response.status_code == 200:
|
| 92 |
result = response.json().get("prediction")
|
| 93 |
if result == "Acceptable transaction":
|
| 94 |
+
print(result)
|
| 95 |
st.success("✅ " + result)
|
| 96 |
else:
|
| 97 |
+
print(result)
|
| 98 |
st.error("🚨 " + result)
|
| 99 |
else:
|
| 100 |
st.error("Error: " + response.text)
|