Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,7 @@ def AMP(file):
|
|
47 |
model.eval()
|
48 |
out_probability = []
|
49 |
with torch.no_grad():
|
50 |
-
|
51 |
-
predict = model(batchs)
|
52 |
out_probability.extend(np.max(np.array(predict.cpu()),axis=1).tolist())
|
53 |
test_argmax = np.argmax(predict.cpu(), axis=1).tolist()
|
54 |
id2str = {0:"non-AMP", 1:"AMP"}
|
|
|
47 |
model.eval()
|
48 |
out_probability = []
|
49 |
with torch.no_grad():
|
50 |
+
predict = model(test_data)
|
|
|
51 |
out_probability.extend(np.max(np.array(predict.cpu()),axis=1).tolist())
|
52 |
test_argmax = np.argmax(predict.cpu(), axis=1).tolist()
|
53 |
id2str = {0:"non-AMP", 1:"AMP"}
|