Update app.py
Browse files
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 |
-
|
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 |
|