Spaces:
Runtime error
Runtime error
dalexanderch
commited on
Commit
•
81b2591
1
Parent(s):
52f5539
Upload app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def fn(glycan, model):
|
|
45 |
glycan = [glycan]
|
46 |
label = [0]
|
47 |
data = next(iter(dataset_to_dataloader(glycan, label, batch_size=1)))
|
48 |
-
pred = model(data)
|
49 |
pred = np.exp(pred)/sum(np.exp(pred)) # Softmax
|
50 |
pred = [float(x) for x in pred]
|
51 |
pred = {class_list[i]:pred[i] for i in range(15)}
|
|
|
45 |
glycan = [glycan]
|
46 |
label = [0]
|
47 |
data = next(iter(dataset_to_dataloader(glycan, label, batch_size=1)))
|
48 |
+
pred = model(data)
|
49 |
pred = np.exp(pred)/sum(np.exp(pred)) # Softmax
|
50 |
pred = [float(x) for x in pred]
|
51 |
pred = {class_list[i]:pred[i] for i in range(15)}
|