Cricles commited on
Commit
3f455ca
·
verified ·
1 Parent(s): 9dc374c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: