Crystalcareai
commited on
Update generate.py
Browse files- generate.py +4 -1
generate.py
CHANGED
@@ -207,4 +207,7 @@ def generate(
|
|
207 |
**model_kwargs,
|
208 |
)
|
209 |
|
210 |
-
return
|
|
|
|
|
|
|
|
207 |
**model_kwargs,
|
208 |
)
|
209 |
|
210 |
+
return {
|
211 |
+
"sequences": generated_token_ids,
|
212 |
+
"attentions": attention_mask
|
213 |
+
}
|