Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ st.write("""<p style='text-align: center; font-size: 24px;'>Это прилож
|
|
55 |
И даже не придётся платить 300 bucks.</p>""", unsafe_allow_html=True)
|
56 |
|
57 |
def highlight_obscene_words(text):
|
58 |
-
label,_=model(text)
|
59 |
if label=='__label__negative':
|
60 |
return (text + " ", "токсично", "#ffcccc")
|
61 |
else:
|
|
|
55 |
И даже не придётся платить 300 bucks.</p>""", unsafe_allow_html=True)
|
56 |
|
57 |
def highlight_obscene_words(text):
|
58 |
+
label,_=model.predict(text)
|
59 |
if label=='__label__negative':
|
60 |
return (text + " ", "токсично", "#ffcccc")
|
61 |
else:
|