Cricles commited on
Commit
0d0d708
·
verified ·
1 Parent(s): 7521b0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -56,10 +56,10 @@ st.write("""<p style='text-align: center; font-size: 24px;'>Это прилож
56
 
57
  def highlight_obscene_words(text):
58
  label,_=model.predict(text)
59
- if label=='__label__negative':
60
- return (text + " ", "токсично", "#ffcccc")
61
- else:
62
  return (text + " ", "приемлемо", "#47916B")
 
 
63
 
64
  # Боковая панель
65
  with st.sidebar:
 
56
 
57
  def highlight_obscene_words(text):
58
  label,_=model.predict(text)
59
+ if label=='__label__positive':
 
 
60
  return (text + " ", "приемлемо", "#47916B")
61
+ else:
62
+ return (text + " ", "токсично", "#ffcccc")
63
 
64
  # Боковая панель
65
  with st.sidebar: