Update app.py
Browse files
app.py
CHANGED
@@ -128,9 +128,10 @@ preds = []
|
|
128 |
for i in range(len(res)):
|
129 |
preds.append(res[i].tolist())
|
130 |
|
|
|
131 |
|
132 |
if st.button('Classify'):
|
133 |
for i in range(len(res)):
|
134 |
-
st.write(f"{
|
135 |
st.success('These are the outputs')
|
136 |
|
|
|
128 |
for i in range(len(res)):
|
129 |
preds.append(res[i].tolist())
|
130 |
|
131 |
+
classes = ['Toxic', 'Severe Toxic', 'Obscene', 'Threat', 'Insult', 'Identity Hate']
|
132 |
|
133 |
if st.button('Classify'):
|
134 |
for i in range(len(res)):
|
135 |
+
st.write(f"{classes[i]} : {round(preds[i], 2)}\n")
|
136 |
st.success('These are the outputs')
|
137 |
|