Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
·
9fc882b
1
Parent(s):
53082d2
Update model.py
Browse files- src/models/model.py +8 -0
src/models/model.py
CHANGED
@@ -85,3 +85,11 @@ class DataModule(Dataset):
|
|
85 |
|
86 |
|
87 |
class PLDataModule(LightningDataModule):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
|
87 |
class PLDataModule(LightningDataModule):
|
88 |
+
def __init__(
|
89 |
+
self,
|
90 |
+
train_df: pd.DataFrame,
|
91 |
+
test_df: pd.DataFrame,
|
92 |
+
tokenizer: T5Tokenizer,
|
93 |
+
source_max_token_len: int = 512,
|
94 |
+
target_max_token_len: int = 512,
|
95 |
+
batch_size: int = 4,
|