oucgc1996 commited on
Commit
14e77ce
1 Parent(s): 1dcde86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -47,8 +47,7 @@ def AMP(file):
47
  model.eval()
48
  out_probability = []
49
  with torch.no_grad():
50
- batchs = {k: v for k, v in batch.items()}
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"}