Oopstom commited on
Commit
6060049
·
verified ·
1 Parent(s): 63abdfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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 time
 
 
 
 
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)