Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,12 +28,12 @@ from fudge.util import save_checkpoint, ProgressMeter, AverageMeter, num_params
|
|
28 |
from fudge.constants import *
|
29 |
|
30 |
|
31 |
-
device = '
|
32 |
# imp.reload(model)
|
33 |
pretrained_model = "checkpoint-150/"
|
34 |
generation_model = AutoModelForSeq2SeqLM.from_pretrained(pretrained_model, return_dict=True).to(device)
|
35 |
|
36 |
-
|
37 |
pad_id = 0
|
38 |
|
39 |
generation_model.eval()
|
|
|
28 |
from fudge.constants import *
|
29 |
|
30 |
|
31 |
+
device = 'cpu'
|
32 |
# imp.reload(model)
|
33 |
pretrained_model = "checkpoint-150/"
|
34 |
generation_model = AutoModelForSeq2SeqLM.from_pretrained(pretrained_model, return_dict=True).to(device)
|
35 |
|
36 |
+
|
37 |
pad_id = 0
|
38 |
|
39 |
generation_model.eval()
|