Crystalcareai commited on
Commit
60d5b50
·
verified ·
1 Parent(s): 57f1a74

Update generate.py

Browse files
Files changed (1) hide show
  1. generate.py +4 -1
generate.py CHANGED
@@ -207,4 +207,7 @@ def generate(
207
  **model_kwargs,
208
  )
209
 
210
- return generated_token_ids, attention_mask
 
 
 
 
207
  **model_kwargs,
208
  )
209
 
210
+ return {
211
+ "sequences": generated_token_ids,
212
+ "attentions": attention_mask
213
+ }