Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,18 @@ import csv
|
|
14 |
from datetime import datetime
|
15 |
import json
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
from rdkit import Chem
|
18 |
from rdkit.Chem import Draw
|
19 |
|
|
|
14 |
from datetime import datetime
|
15 |
import json
|
16 |
|
17 |
+
|
18 |
+
zero = torch.tensor([0]).cuda()
|
19 |
+
one = torch.tensor([0]).cuda()
|
20 |
+
two = torch.tensor([0]).cuda()
|
21 |
+
|
22 |
+
@spaces.GPU
|
23 |
+
def test(n):
|
24 |
+
print('in', zero.device, one.device, two.device)
|
25 |
+
return 0
|
26 |
+
|
27 |
+
test(1)
|
28 |
+
|
29 |
from rdkit import Chem
|
30 |
from rdkit.Chem import Draw
|
31 |
|