Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
c22b8b7
1
Parent(s):
a57b99f
Update model.py
Browse files- src/models/model.py +1 -0
src/models/model.py
CHANGED
@@ -354,6 +354,7 @@ class Summarization:
|
|
354 |
model_dir (str, optional): path to model directory. Defaults to "outputs".
|
355 |
use_gpu (bool, optional): if True, model uses gpu for inferencing/prediction. Defaults to True.
|
356 |
"""
|
|
|
357 |
|
358 |
if use_gpu:
|
359 |
if torch.cuda.is_available():
|
|
|
354 |
model_dir (str, optional): path to model directory. Defaults to "outputs".
|
355 |
use_gpu (bool, optional): if True, model uses gpu for inferencing/prediction. Defaults to True.
|
356 |
"""
|
357 |
+
if model_type == "t5":
|
358 |
|
359 |
if use_gpu:
|
360 |
if torch.cuda.is_available():
|