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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -195,13 +195,7 @@ def generateresponse(history):#, task):
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:
 
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: