wannaphong commited on
Commit
8a5e05e
·
1 Parent(s): a96c874

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -143,8 +143,8 @@ from transformers import AutoTokenizer,AutoModelForCausalLM
143
 
144
  template = """
145
  {history}
146
- : {human_input}
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
- ": {input}\n: {instruction}\n: "
263
  ),
264
  "prompt_no_input": (
265
- ": {instruction}\n: "
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