Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,8 +75,7 @@ prompt_template = """### HUMAN:
|
|
| 75 |
### RESPONSE:"""
|
| 76 |
|
| 77 |
|
| 78 |
-
|
| 79 |
-
<|answer|>:"""
|
| 80 |
|
| 81 |
|
| 82 |
prompt_template = """SYSTEM:
|
|
@@ -84,6 +83,9 @@ USER: {question}
|
|
| 84 |
ASSISTANT: """
|
| 85 |
|
| 86 |
|
|
|
|
|
|
|
|
|
|
| 87 |
_ = [elm for elm in prompt_template.splitlines() if elm.strip()]
|
| 88 |
stop_string = [elm.split(":")[0] + ":" for elm in _][-2]
|
| 89 |
|
|
|
|
| 75 |
### RESPONSE:"""
|
| 76 |
|
| 77 |
|
| 78 |
+
|
|
|
|
| 79 |
|
| 80 |
|
| 81 |
prompt_template = """SYSTEM:
|
|
|
|
| 83 |
ASSISTANT: """
|
| 84 |
|
| 85 |
|
| 86 |
+
prompt_template = """<|prompt|>:{question}</s>
|
| 87 |
+
<|answer|>:"""
|
| 88 |
+
|
| 89 |
_ = [elm for elm in prompt_template.splitlines() if elm.strip()]
|
| 90 |
stop_string = [elm.split(":")[0] + ":" for elm in _][-2]
|
| 91 |
|