Spaces:
Running
Running
Commit
·
8a5e05e
1
Parent(s):
a96c874
Update app.py
Browse files
app.py
CHANGED
@@ -143,8 +143,8 @@ from transformers import AutoTokenizer,AutoModelForCausalLM
|
|
143 |
|
144 |
template = """
|
145 |
{history}
|
146 |
-
|
147 |
-
|
148 |
|
149 |
prompt = PromptTemplate(
|
150 |
input_variables=["history", "human_input"],
|
@@ -259,10 +259,10 @@ def list2prompt(history):
|
|
259 |
|
260 |
PROMPT_DICT = {
|
261 |
"prompt_input": (
|
262 |
-
"
|
263 |
),
|
264 |
"prompt_no_input": (
|
265 |
-
"
|
266 |
),
|
267 |
}
|
268 |
|
|
|
143 |
|
144 |
template = """
|
145 |
{history}
|
146 |
+
<human>: {human_input}
|
147 |
+
<bot>:"""
|
148 |
|
149 |
prompt = PromptTemplate(
|
150 |
input_variables=["history", "human_input"],
|
|
|
259 |
|
260 |
PROMPT_DICT = {
|
261 |
"prompt_input": (
|
262 |
+
"<context>: {input}\n<human>: {instruction}\n<bot>: "
|
263 |
),
|
264 |
"prompt_no_input": (
|
265 |
+
"<human>: {instruction}\n<bot>: "
|
266 |
),
|
267 |
}
|
268 |
|