Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
83a1f94
1
Parent(s):
26d09e7
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
@@ -262,6 +262,7 @@ class Summarization:
|
|
262 |
)
|
263 |
elif model_type == "mt5":
|
264 |
self.tokenizer = MT5Tokenizer.from_pretrained(f"{model_name}")
|
|
|
265 |
|
266 |
def train(
|
267 |
self,
|
|
|
262 |
)
|
263 |
elif model_type == "mt5":
|
264 |
self.tokenizer = MT5Tokenizer.from_pretrained(f"{model_name}")
|
265 |
+
self.model = MT5ForConditionalGeneration.from_pretrained(
|
266 |
|
267 |
def train(
|
268 |
self,
|