Cricles commited on
Commit
9e56d09
·
verified ·
1 Parent(s): 245950d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ model_type = st.selectbox(
115
 
116
  def highlight_obscene_words(text, model_type):
117
  if model_type=="fasttext":
118
- label,_=model.predict(text.lower())
119
  if label[0]=='__label__positive':
120
  st.markdown(
121
  "<span style='background:#47916B;'>{}|приемлемо</span>".format(text),
 
115
 
116
  def highlight_obscene_words(text, model_type):
117
  if model_type=="fasttext":
118
+ label,_=model_fasttext.predict(text.lower())
119
  if label[0]=='__label__positive':
120
  st.markdown(
121
  "<span style='background:#47916B;'>{}|приемлемо</span>".format(text),