Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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]),
|