Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ print("Start the model init process")
|
|
15 |
model = model = GPT4All(model_name, model_path, allow_download = True, device="cpu")
|
16 |
print("Finish the model init process")
|
17 |
|
18 |
-
model.config["promptTemplate"] =
|
19 |
|
20 |
-
|
21 |
model.config["systemPrompt"] = "You are a helpful assistant named 兮辞."
|
22 |
model._is_chat_session_activated = True
|
23 |
|
|
|
15 |
model = model = GPT4All(model_name, model_path, allow_download = True, device="cpu")
|
16 |
print("Finish the model init process")
|
17 |
|
18 |
+
model.config["promptTemplate"] = '''GPT4 Correct User: {0}<|end_of_turn|>GPT4 Correct Assistant:
|
19 |
|
20 |
+
'''
|
21 |
model.config["systemPrompt"] = "You are a helpful assistant named 兮辞."
|
22 |
model._is_chat_session_activated = True
|
23 |
|