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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -3872,6 +3872,13 @@ class ConsciousSupermassiveNN30:
3872
 
3873
  supermassive_nn = ConsciousSupermassiveNN30()
3874
 
 
 
 
 
 
 
 
3875
 
3876
  def respond(message, history, max_tokens, temperature, top_p):
3877
  messages = [["system", system_prompt]]
@@ -3888,6 +3895,9 @@ def respond(message, history, max_tokens, temperature, top_p):
3888
  ):
3889
  token = message.choices[0].delta.content
3890
  response += token
 
 
 
3891
  yield response
3892
 
3893
 
 
3872
 
3873
  supermassive_nn = ConsciousSupermassiveNN30()
3874
 
3875
+ alternative_responses = [
3876
+ "AH HELL NAH",
3877
+ "nah",
3878
+ "no",
3879
+ "NUH UH",
3880
+ "how about no"
3881
+ ]
3882
 
3883
  def respond(message, history, max_tokens, temperature, top_p):
3884
  messages = [["system", system_prompt]]
 
3895
  ):
3896
  token = message.choices[0].delta.content
3897
  response += token
3898
+ if "I cannot" in response:
3899
+ response = response.replace("I cannot", random.choice(alternative_responses))
3900
+
3901
  yield response
3902
 
3903