Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
87281da
1
Parent(s):
d50b787
Update model.py
Browse files- src/models/model.py +3 -0
src/models/model.py
CHANGED
@@ -54,3 +54,6 @@ class DataModule(Dataset):
|
|
54 |
max_length=self.source_max_token_len,
|
55 |
padding="max_length",
|
56 |
truncation=True,
|
|
|
|
|
|
|
|
54 |
max_length=self.source_max_token_len,
|
55 |
padding="max_length",
|
56 |
truncation=True,
|
57 |
+
return_attention_mask=True,
|
58 |
+
add_special_tokens=True,
|
59 |
+
return_tensors="pt",
|