Spaces:
Runtime error
Runtime error
Rzhishchev
commited on
Commit
•
aadb1dc
1
Parent(s):
0e9f7cd
Update toxic.py
Browse files
toxic.py
CHANGED
@@ -25,7 +25,7 @@ def app():
|
|
25 |
return 1 - proba.T[0] * (1 - proba.T[-1])
|
26 |
return proba
|
27 |
|
28 |
-
user_input = st.text_area("Enter text to check for toxicity:", "
|
29 |
if st.button("Analyze"):
|
30 |
toxicity_score = text2toxicity(user_input, True)
|
31 |
st.write(f"Toxicity Score: {toxicity_score:.4f}")
|
|
|
25 |
return 1 - proba.T[0] * (1 - proba.T[-1])
|
26 |
return proba
|
27 |
|
28 |
+
user_input = st.text_area("Enter text to check for toxicity:", "Собака сутулая")
|
29 |
if st.button("Analyze"):
|
30 |
toxicity_score = text2toxicity(user_input, True)
|
31 |
st.write(f"Toxicity Score: {toxicity_score:.4f}")
|