Oopstom commited on
Commit
73028bf
·
verified ·
1 Parent(s): 6060049

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -4,10 +4,13 @@ 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)
 
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)