Sushrut98 commited on
Commit
fa14ef7
·
verified ·
1 Parent(s): 24fa736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def predict(img) -> Tuple[Dict, float]:
46
  start_time = timer()
47
 
48
  # Transform the target image and add a batch dimension
49
- img = transform(img).unsqueeze(0)
50
 
51
  # Put model into evaluation mode and turn on inference mode
52
  TinyCNN_model.eval()
 
46
  start_time = timer()
47
 
48
  # Transform the target image and add a batch dimension
49
+ img = transform(img).unsqueeze(dim=0)
50
 
51
  # Put model into evaluation mode and turn on inference mode
52
  TinyCNN_model.eval()