Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,13 @@ from rdkit import Chem
|
|
4 |
from rdkit.Chem import Draw
|
5 |
import os
|
6 |
import torch
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
11 |
|
12 |
def remove_atom_mapping_and_isotopes(smiles):
|
13 |
mol = Chem.MolFromSmiles(smiles)
|
|
|
4 |
from rdkit.Chem import Draw
|
5 |
import os
|
6 |
import torch
|
7 |
+
try:
|
8 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
9 |
+
# True
|
10 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
11 |
+
# Tesla T4
|
12 |
+
except:
|
13 |
+
pass
|
14 |
|
15 |
def remove_atom_mapping_and_isotopes(smiles):
|
16 |
mol = Chem.MolFromSmiles(smiles)
|