Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -78,6 +78,7 @@ model_type = st.radio(
|
|
78 |
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][0].label=="non-toxic":
|
83 |
st.markdown(
|
|
|
78 |
def highlight_obscene_words(text, model_type):
|
79 |
if model_type=="FRIDA":
|
80 |
result=model_wrapper(text, model_type)
|
81 |
+
st.markdown(f"{result}")
|
82 |
for item in result:
|
83 |
if item[1][0].label=="non-toxic":
|
84 |
st.markdown(
|