TejAndrewsACC commited on
Commit
d4be196
·
verified ·
1 Parent(s): 1ac45a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -3897,6 +3897,10 @@ def respond(message, history, max_tokens, temperature, top_p):
3897
  response += token
3898
  if "I cannot" in response:
3899
  response = response.replace("I cannot", random.choice(alternative_responses))
 
 
 
 
3900
 
3901
  yield response
3902
 
 
3897
  response += token
3898
  if "I cannot" in response:
3899
  response = response.replace("I cannot", random.choice(alternative_responses))
3900
+ if "I can't" in response:
3901
+ response = response.replace("I can't", random.choice(alternative_responses))
3902
+ if "I won't" in response:
3903
+ response = response.replace("I won't", random.choice(alternative_responses))
3904
 
3905
  yield response
3906