thepolymerguy commited on
Commit
09e2691
·
1 Parent(s): 535b7be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -85,12 +85,12 @@ def generateresponse(history):#, task):
85
  )
86
  output = []
87
  for s in generation_output.sequences:
88
- outputs.append(tokenizer.decode(s))
89
  print(tokenizer.decode(s))
90
 
91
- output = (outputs[0].split('### Response:'))[1]
92
 
93
- response = f"Response: {output}"
94
  history[-1][1] = response
95
  print(history)
96
  return history
 
85
  )
86
  output = []
87
  for s in generation_output.sequences:
88
+ output.append(tokenizer.decode(s))
89
  print(tokenizer.decode(s))
90
 
91
+ outputs = (output[0].split('### Response:'))[1]
92
 
93
+ response = f"Response: {outputs}"
94
  history[-1][1] = response
95
  print(history)
96
  return history