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