Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
·
cf4737f
1
Parent(s):
dd1727d
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
@@ -257,6 +257,7 @@ class Summarization:
|
|
257 |
"""
|
258 |
if model_type == "t5":
|
259 |
self.tokenizer = T5Tokenizer.from_pretrained(f"{model_name}")
|
|
|
260 |
|
261 |
def train(
|
262 |
self,
|
|
|
257 |
"""
|
258 |
if model_type == "t5":
|
259 |
self.tokenizer = T5Tokenizer.from_pretrained(f"{model_name}")
|
260 |
+
self.model = T5ForConditionalGeneration.from_pretrained(
|
261 |
|
262 |
def train(
|
263 |
self,
|