bytchew commited on
Commit
f4357ff
·
verified ·
1 Parent(s): ae72117

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,9 +73,9 @@ def process_image_str(groupImageFilePath: str):
73
 
74
  for image, location in zip(images, locations):
75
  # Process the image
76
- intputTensor = transforms(image).unsqueeze(0) # unsqueeze? add batch dimension??
77
 
78
- # do AI stuff here
79
  with torch.no_grad():
80
  outputs_t = model(intputTensor)
81
  cert, pred_t = torch.max(torch.softmax(outputs_t, dim=1), dim=1)
 
73
 
74
  for image, location in zip(images, locations):
75
  # Process the image
76
+ intputTensor = transforms(image).unsqueeze(0)
77
 
78
+ # Do AI stuff here and format output
79
  with torch.no_grad():
80
  outputs_t = model(intputTensor)
81
  cert, pred_t = torch.max(torch.softmax(outputs_t, dim=1), dim=1)