Chukwuka commited on
Commit
0563b98
·
1 Parent(s): bf737d3

Updated the model_tsfm.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def predict(img) -> Tuple[Dict, float]:
47
 
48
  # Transform the target image and add a batch dimension
49
  #img = get_image(img_path, model_tsfm).unsqueeze(0)
50
- img = model_tsfm(image=np.array(img))["image"]
51
  img = img.unsqueeze(0)
52
 
53
  # Put model into evaluation mode and turn on inference mode
 
47
 
48
  # Transform the target image and add a batch dimension
49
  #img = get_image(img_path, model_tsfm).unsqueeze(0)
50
+ img = model_tsfm(img)
51
  img = img.unsqueeze(0)
52
 
53
  # Put model into evaluation mode and turn on inference mode