Cricles commited on
Commit
4e33d7b
·
verified ·
1 Parent(s): 0ed926b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -79,6 +79,7 @@ def highlight_obscene_words(text, model_type):
79
  if model_type=="FRIDA":
80
  result=model_wrapper(text, model_type)
81
  for item in result:
 
82
  if item[1]=="non-toxic":
83
  st.markdown(
84
  "<span style='background:#47916B;'>{}:приемлемо</span>".format(item[0]),
 
79
  if model_type=="FRIDA":
80
  result=model_wrapper(text, model_type)
81
  for item in result:
82
+ st.markdown(f"{item}")
83
  if item[1]=="non-toxic":
84
  st.markdown(
85
  "<span style='background:#47916B;'>{}:приемлемо</span>".format(item[0]),