Update toxic1.py
Browse files
toxic1.py
CHANGED
@@ -35,10 +35,10 @@ def toxicity_page():
|
|
35 |
|
36 |
if proba >= 0.5:
|
37 |
st.write(f'Степень токсичности комментария: {round(proba, 2)} – комментарий токсичный.')
|
38 |
-
st.image('maxresdefault.jpg'
|
39 |
else:
|
40 |
st.write(f'Степень токсичности комментария: {round(proba, 2)} – комментарий не токсичный.')
|
41 |
-
st.image('c793397a-39df-5ff7-8137-e59568352c11.jpeg'
|
42 |
st.write(f'Время предсказания: {prediction_time:.4f} секунд')
|
43 |
|
44 |
toxicity_page()
|
|
|
35 |
|
36 |
if proba >= 0.5:
|
37 |
st.write(f'Степень токсичности комментария: {round(proba, 2)} – комментарий токсичный.')
|
38 |
+
st.image('maxresdefault.jpg')
|
39 |
else:
|
40 |
st.write(f'Степень токсичности комментария: {round(proba, 2)} – комментарий не токсичный.')
|
41 |
+
st.image('c793397a-39df-5ff7-8137-e59568352c11.jpeg')
|
42 |
st.write(f'Время предсказания: {prediction_time:.4f} секунд')
|
43 |
|
44 |
toxicity_page()
|