Spaces:
Runtime error
Runtime error
ameya123ch
commited on
Commit
•
a27924e
1
Parent(s):
8169128
Update app.py
Browse files
app.py
CHANGED
@@ -37,11 +37,11 @@ def main():
|
|
37 |
|
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(preb_prob) * 100)}%")
|
42 |
else:
|
43 |
col1, col2 = st.columns(2)
|
44 |
-
col1.metric("
|
45 |
col2.metric("Confidence Level", value=f"{np.round(np.max(pred_prob) * 100)}%")
|
46 |
|
47 |
if st.button("About"):
|
|
|
37 |
|
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(preb_prob) * 100)}%")
|
42 |
else:
|
43 |
col1, col2 = st.columns(2)
|
44 |
+
col1.metric("Prediction", value="It's a Positive News.")
|
45 |
col2.metric("Confidence Level", value=f"{np.round(np.max(pred_prob) * 100)}%")
|
46 |
|
47 |
if st.button("About"):
|