Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
7491802
1
Parent(s):
c28c196
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
@@ -366,6 +366,7 @@ class Summarization:
|
|
366 |
)
|
367 |
elif model_type == "byt5":
|
368 |
self.tokenizer = ByT5Tokenizer.from_pretrained(f"{model_dir}")
|
|
|
369 |
|
370 |
if use_gpu:
|
371 |
if torch.cuda.is_available():
|
|
|
366 |
)
|
367 |
elif model_type == "byt5":
|
368 |
self.tokenizer = ByT5Tokenizer.from_pretrained(f"{model_dir}")
|
369 |
+
self.model = T5ForConditionalGeneration.from_pretrained(
|
370 |
|
371 |
if use_gpu:
|
372 |
if torch.cuda.is_available():
|