bithal26 commited on
Commit
5a093e4
·
verified ·
1 Parent(s): 389776b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def predict_tensor(tensor_file):
49
  return {"error": "No tensor file received"}
50
  try:
51
  # Load math tensor
52
- x = torch.load(tensor_file.name, map_location=device, weights_only=True)
53
  with torch.no_grad():
54
  y_pred = model(x)
55
  y_pred = torch.sigmoid(y_pred.squeeze())
 
49
  return {"error": "No tensor file received"}
50
  try:
51
  # Load math tensor
52
+ x = torch.load(tensor_file.name, map_location=device, weights_only=False)
53
  with torch.no_grad():
54
  y_pred = model(x)
55
  y_pred = torch.sigmoid(y_pred.squeeze())