Dusan commited on
Commit
c19bf8e
1 Parent(s): b456e6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 'cuda'
32
  # imp.reload(model)
33
  pretrained_model = "checkpoint-150/"
34
  generation_model = AutoModelForSeq2SeqLM.from_pretrained(pretrained_model, return_dict=True).to(device)
35
 
36
- device = 'cuda'
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()