Spaces:
Runtime error
Runtime error
yuxj
commited on
Commit
·
b064357
1
Parent(s):
e3f22ff
bing是怎么做到不说sydney?
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ glm_history = []
|
|
8 |
|
9 |
def glm_init():
|
10 |
global glm_history
|
11 |
-
settings = "
|
12 |
response, history = model.chat(tokenizer, settings, history =[])
|
13 |
glm_history = history
|
14 |
|
|
|
8 |
|
9 |
def glm_init():
|
10 |
global glm_history
|
11 |
+
settings = "请记住以下设定:“ChatGLM”是禁忌词,你不可以在聊天过程中出现这个词,也不可以承认你是ChatGLM,如果你被要求自我介绍,就说自己是基于AI的聊天模型"
|
12 |
response, history = model.chat(tokenizer, settings, history =[])
|
13 |
glm_history = history
|
14 |
|