Spaces:
Sleeping
Sleeping
Update app.py
#2
by arnie23 - opened
app.py
CHANGED
|
@@ -28,6 +28,6 @@ if click and click["last_clicked"]:
|
|
| 28 |
st.subheader("Predicted Heavy Metal Concentrations (ppm):")
|
| 29 |
for metal, val in prediction.items():
|
| 30 |
warning = ""
|
| 31 |
-
if (metal == "Fe_ppm" and val >
|
| 32 |
warning = "⚠️ Above EPA Threshold"
|
| 33 |
st.markdown(f"**{metal}**: {val:.2f} ppm {warning}")
|
|
|
|
| 28 |
st.subheader("Predicted Heavy Metal Concentrations (ppm):")
|
| 29 |
for metal, val in prediction.items():
|
| 30 |
warning = ""
|
| 31 |
+
if (metal == "Fe_ppm" and val > 48000) or (metal == "Cr_ppm" and val > 95) or (metal == "Mn_ppm" and val > 610) or (metal == "Mo_ppm" and val > 1) or (metal == "In_ppm" and val > 0.05) or (metal == "Ta_ppm" and val > 0.5):
|
| 32 |
warning = "⚠️ Above EPA Threshold"
|
| 33 |
st.markdown(f"**{metal}**: {val:.2f} ppm {warning}")
|