Spaces:
Sleeping
Sleeping
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,
|
59 |
if label[0]=='__label__positive':
|
60 |
#st.markdown(
|
61 |
# "<span style='background:#47916B;'>приемлемо</span>",
|
|
|
55 |
И даже не придётся платить 300 bucks.</p>""", unsafe_allow_html=True)
|
56 |
|
57 |
def highlight_obscene_words(text):
|
58 |
+
label,_=model.predict(text.lower())
|
59 |
if label[0]=='__label__positive':
|
60 |
#st.markdown(
|
61 |
# "<span style='background:#47916B;'>приемлемо</span>",
|