osanseviero HF staff commited on
Commit
c48dde4
β€’
1 Parent(s): 52fb80a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def download_img(path):
46
  handler.write(img_data)
47
  return local_path
48
 
49
- def predict(query):
50
  x = torch.tensor(im, dtype=torch.float32).unsqueeze(0).unsqueeze(0) / 255.
51
  with torch.no_grad():
52
  out = class_model(x)
 
46
  handler.write(img_data)
47
  return local_path
48
 
49
+ def predict(im):
50
  x = torch.tensor(im, dtype=torch.float32).unsqueeze(0).unsqueeze(0) / 255.
51
  with torch.no_grad():
52
  out = class_model(x)