alvarobartt HF staff commited on
Commit
d1cf6f0
1 Parent(s): 89baa6d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -100,6 +100,6 @@ class EndpointHandler:
100
  generated_ids,
101
  skip_special_tokens=True,
102
  )
103
- predictions.append(generated_texts[0][len(prompt):])
104
 
105
  return {"predictions": predictions}
 
100
  generated_ids,
101
  skip_special_tokens=True,
102
  )
103
+ predictions.append(generated_texts[0])
104
 
105
  return {"predictions": predictions}