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