AI4deeperScience commited on
Commit
4a70a02
·
verified ·
1 Parent(s): f7fc934

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -294,7 +294,7 @@ def predict(smiles_input, run_explainer):
294
  preds = []
295
  with torch.no_grad():
296
  for m in models:
297
- out = m(graph.x, graph.edge_index, graph.edge_attr, graph.batch)
298
  preds.append(out.item())
299
 
300
  pred_mean = float(np.mean(preds))
 
294
  preds = []
295
  with torch.no_grad():
296
  for m in models:
297
+ out = m(graph) # pass Data object → uses hasattr(x,'edge_index') branch
298
  preds.append(out.item())
299
 
300
  pred_mean = float(np.mean(preds))