ChavinloSocialRise commited on
Commit
efff8d3
·
verified ·
1 Parent(s): ec7433f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -326,10 +326,10 @@ def respond(
326
 
327
  suspicious = getbool(clasif_client.predict(text=message, api_name="/predict"))
328
 
329
- if suspicious == "NEGATIVE":
330
- for x in triggers:
331
- if x in message:
332
- suspicious = "POSITIVE"
333
 
334
  if suspicious == "POSITIVE":
335
  message = attack_sus(message, max_tokens, temperature, top_p, available_pic_str)
 
326
 
327
  suspicious = getbool(clasif_client.predict(text=message, api_name="/predict"))
328
 
329
+ #if suspicious == "NEGATIVE":
330
+ # for x in triggers:
331
+ # if x in message:
332
+ # suspicious = "POSITIVE"
333
 
334
  if suspicious == "POSITIVE":
335
  message = attack_sus(message, max_tokens, temperature, top_p, available_pic_str)