Spaces:
Runtime error
Runtime error
Gagan Bhatia commited on
Commit ·
c8a440e
1
Parent(s): e4c6ec6
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
|
@@ -267,6 +267,7 @@ class Summarization:
|
|
| 267 |
)
|
| 268 |
elif model_type == "byt5":
|
| 269 |
self.tokenizer = ByT5Tokenizer.from_pretrained(f"{model_name}")
|
|
|
|
| 270 |
|
| 271 |
def train(
|
| 272 |
self,
|
|
|
|
| 267 |
)
|
| 268 |
elif model_type == "byt5":
|
| 269 |
self.tokenizer = ByT5Tokenizer.from_pretrained(f"{model_name}")
|
| 270 |
+
self.model = T5ForConditionalGeneration.from_pretrained(
|
| 271 |
|
| 272 |
def train(
|
| 273 |
self,
|