Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
b9ee162
1
Parent(s):
0f1daf7
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
@@ -265,6 +265,7 @@ class Summarization:
|
|
265 |
self.model = MT5ForConditionalGeneration.from_pretrained(
|
266 |
f"{model_name}", return_dict=True
|
267 |
)
|
|
|
268 |
|
269 |
def train(
|
270 |
self,
|
|
|
265 |
self.model = MT5ForConditionalGeneration.from_pretrained(
|
266 |
f"{model_name}", return_dict=True
|
267 |
)
|
268 |
+
self.tokenizer = ByT5Tokenizer.from_pretrained(f"{model_name}")
|
269 |
|
270 |
def train(
|
271 |
self,
|