Spaces:
Runtime error
Runtime error
Gagan Bhatia commited on
Commit ·
272671c
1
Parent(s): 8291502
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
|
@@ -358,6 +358,7 @@ class Summarization:
|
|
| 358 |
self.tokenizer = T5Tokenizer.from_pretrained(f"{model_dir}")
|
| 359 |
self.model = T5ForConditionalGeneration.from_pretrained(
|
| 360 |
f"{model_dir}", return_dict=True
|
|
|
|
| 361 |
|
| 362 |
if use_gpu:
|
| 363 |
if torch.cuda.is_available():
|
|
|
|
| 358 |
self.tokenizer = T5Tokenizer.from_pretrained(f"{model_dir}")
|
| 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():
|