s3nh commited on
Commit
3817432
1 Parent(s): 2386c63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,8 +60,8 @@ def evaluate(instruction, input=None):
60
  result = []
61
  for s in generation_output.sequences:
62
  output = tokenizer.decode(s)
63
- results.append( output.split("### Response:")[1].strip())
64
- return ' '.join(el for el in results)
65
 
66
  def inference(text, input):
67
  output = evaluate(instruction = text, input = input)
 
60
  result = []
61
  for s in generation_output.sequences:
62
  output = tokenizer.decode(s)
63
+ result.append( output.split("### Response:")[1].strip())
64
+ return ' '.join(el for el in result)
65
 
66
  def inference(text, input):
67
  output = evaluate(instruction = text, input = input)