Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ if st.button("Проверить текст"):
|
|
108 |
result = re.split(r'[.\n!?]+', user_input)
|
109 |
result = [part for part in result if part.strip() != ""]
|
110 |
if model_type=="FRIDA":
|
111 |
-
highlight_obscene_words(
|
112 |
else:
|
113 |
if result!=[]:
|
114 |
for text in result:
|
|
|
108 |
result = re.split(r'[.\n!?]+', user_input)
|
109 |
result = [part for part in result if part.strip() != ""]
|
110 |
if model_type=="FRIDA":
|
111 |
+
highlight_obscene_words(result,model_type)
|
112 |
else:
|
113 |
if result!=[]:
|
114 |
for text in result:
|