Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
c4b22ed
1
Parent(s):
ae6c335
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
@@ -360,6 +360,7 @@ class Summarization:
|
|
360 |
f"{model_dir}", return_dict=True
|
361 |
)
|
362 |
elif model_type == "mt5":
|
|
|
363 |
|
364 |
if use_gpu:
|
365 |
if torch.cuda.is_available():
|
|
|
360 |
f"{model_dir}", return_dict=True
|
361 |
)
|
362 |
elif model_type == "mt5":
|
363 |
+
self.tokenizer = MT5Tokenizer.from_pretrained(f"{model_dir}")
|
364 |
|
365 |
if use_gpu:
|
366 |
if torch.cuda.is_available():
|