Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,16 +13,7 @@ st.header("Please input your Tweet for Toxicity Analysis :performing_arts:")
|
|
13 |
input = st.text_area("Enter a Tweer for analysis")
|
14 |
result = toxic_model(input)
|
15 |
|
16 |
-
# Display the
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
for result in results:
|
21 |
-
if result['score'] > max_score:
|
22 |
-
max_score = result['score']
|
23 |
-
max_label = result['label']
|
24 |
-
|
25 |
-
st.write("Tweet:", input)
|
26 |
-
st.write("Label:", max_label)
|
27 |
-
st.write("Score:", max_score)
|
28 |
|
|
|
13 |
input = st.text_area("Enter a Tweer for analysis")
|
14 |
result = toxic_model(input)
|
15 |
|
16 |
+
# Display the result
|
17 |
+
st.write("Tweet:", input)
|
18 |
+
st.write("Result:", result)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|