thepolymerguy commited on
Commit
6612c30
·
1 Parent(s): aaf8a27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -195,7 +195,13 @@ def generateresponse(history):#, task):
195
  global model
196
  global tokenizer
197
 
198
- user = history[-1][0]
 
 
 
 
 
 
199
 
200
  PROMPT = f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
201
  ### Instruction:
 
195
  global model
196
  global tokenizer
197
 
198
+ #user = history[-1][0]
199
+
200
+ if len(history[0]) < 2:
201
+ user = history[-1][0]
202
+ else:
203
+ user = ' '.join([history[-1][0], history[-2][0]])
204
+
205
 
206
  PROMPT = f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
207
  ### Instruction: