Spaces:
Runtime error
Runtime error
Commit
•
5e29182
1
Parent(s):
80c0cce
Update app.py
Browse files
app.py
CHANGED
@@ -16,16 +16,7 @@ print("Start the model init process")
|
|
16 |
model = model = GPT4All(model_name, model_path, allow_download = False, device="cpu")
|
17 |
print("Finish the model init process")
|
18 |
|
19 |
-
model.config["promptTemplate"] = "
|
20 |
-
|
21 |
-
### Instruction:
|
22 |
-
{0}
|
23 |
-
|
24 |
-
### Input:
|
25 |
-
{}
|
26 |
-
|
27 |
-
### Response:
|
28 |
-
{}"""
|
29 |
model.config["systemPrompt"] = ""
|
30 |
model._is_chat_session_activated = False
|
31 |
|
|
|
16 |
model = model = GPT4All(model_name, model_path, allow_download = False, device="cpu")
|
17 |
print("Finish the model init process")
|
18 |
|
19 |
+
model.config["promptTemplate"] = "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n### Instruction:\n{0}\n### Input:\n{}\n### Response:\n{}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
model.config["systemPrompt"] = ""
|
21 |
model._is_chat_session_activated = False
|
22 |
|