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