habdine commited on
Commit
9a9a02f
1 Parent(s): c2bf052

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -21,8 +21,7 @@ device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
21
  tokenizer = AutoTokenizer.from_pretrained('habdine/Esm2Text-Base-v1-1',
22
  trust_remote_code=True)
23
  model = AutoModelForCausalLM.from_pretrained('habdine/Esm2Text-Base-v1-1',
24
- device=device,
25
- trust_remote_code=True)
26
  model.eval()
27
 
28
 
 
21
  tokenizer = AutoTokenizer.from_pretrained('habdine/Esm2Text-Base-v1-1',
22
  trust_remote_code=True)
23
  model = AutoModelForCausalLM.from_pretrained('habdine/Esm2Text-Base-v1-1',
24
+ trust_remote_code=True).to(device)
 
25
  model.eval()
26
 
27