Spaces:
Runtime error
Runtime error
ameya123ch
commited on
Commit
•
88eba6a
1
Parent(s):
a27924e
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def main():
|
|
38 |
if predict == 0:
|
39 |
col1, col2 = st.columns(2)
|
40 |
col1.metric("Prediction", value="It's a Negative News.")
|
41 |
-
col2.metric("Confidence Level", value=f"{np.round(np.max(
|
42 |
else:
|
43 |
col1, col2 = st.columns(2)
|
44 |
col1.metric("Prediction", value="It's a Positive News.")
|
|
|
38 |
if predict == 0:
|
39 |
col1, col2 = st.columns(2)
|
40 |
col1.metric("Prediction", value="It's a Negative News.")
|
41 |
+
col2.metric("Confidence Level", value=f"{np.round(np.max(pred_prob) * 100)}%")
|
42 |
else:
|
43 |
col1, col2 = st.columns(2)
|
44 |
col1.metric("Prediction", value="It's a Positive News.")
|