Cricles commited on
Commit
69bcac1
·
verified ·
1 Parent(s): bcefbf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,8 +55,9 @@ 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.predict(text)
59
  st.write(f"{label}")
 
60
  if label=='__label__positive':
61
  return (text + " ", "приемлемо", "#47916B")
62
  else:
 
55
  И даже не придётся платить 300 bucks.</p>""", unsafe_allow_html=True)
56
 
57
  def highlight_obscene_words(text):
58
+ label,probs=model.predict(text)
59
  st.write(f"{label}")
60
+ st.write(f"{probs}")
61
  if label=='__label__positive':
62
  return (text + " ", "приемлемо", "#47916B")
63
  else: