Update app.py
Browse files
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)
|
| 77 |
|
| 78 |
-
#
|
| 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)
|