Spaces:
Running
Running
Update app.py
Browse files
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 |
|