Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
·
07c0bde
1
Parent(s):
8cdbfed
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
@@ -253,6 +253,7 @@ class Summarization:
|
|
253 |
loads T5/MT5 Model model for training/finetuning
|
254 |
Args:
|
255 |
model_name (str, optional): exact model architecture name, "t5-base" or "t5-large". Defaults to "t5-base".
|
|
|
256 |
"""
|
257 |
self.tokenizer = T5Tokenizer.from_pretrained(f"{model_name}")
|
258 |
self.model = T5ForConditionalGeneration.from_pretrained(
|
|
|
253 |
loads T5/MT5 Model model for training/finetuning
|
254 |
Args:
|
255 |
model_name (str, optional): exact model architecture name, "t5-base" or "t5-large". Defaults to "t5-base".
|
256 |
+
:param model_type:
|
257 |
"""
|
258 |
self.tokenizer = T5Tokenizer.from_pretrained(f"{model_name}")
|
259 |
self.model = T5ForConditionalGeneration.from_pretrained(
|