saifhmb
commited on
added round function to value args in st.metric
Browse files
app.py
CHANGED
|
@@ -77,9 +77,9 @@ def main():
|
|
| 77 |
'''
|
| 78 |
st.markdown(multi)
|
| 79 |
st.header("Model Metrics", divider = "gray")
|
| 80 |
-
st.metric(label = "Accuracy", value = acc)
|
| 81 |
-
st.metric(label = "Precision", value = ps)
|
| 82 |
-
st.metric(label = "Recall", value = rs)
|
| 83 |
|
| 84 |
st.markdown("To determine whether a customer will make a purchase, please **enter** the Age and Estimated Salary:")
|
| 85 |
Age = st.number_input("Age")
|
|
|
|
| 77 |
'''
|
| 78 |
st.markdown(multi)
|
| 79 |
st.header("Model Metrics", divider = "gray")
|
| 80 |
+
st.metric(label = "Accuracy", value = round(acc, 2))
|
| 81 |
+
st.metric(label = "Precision", value = round(ps, 2))
|
| 82 |
+
st.metric(label = "Recall", value = round(rs, 2))
|
| 83 |
|
| 84 |
st.markdown("To determine whether a customer will make a purchase, please **enter** the Age and Estimated Salary:")
|
| 85 |
Age = st.number_input("Age")
|