Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -222,7 +222,7 @@ transform = T.Compose([
|
|
222 |
|
223 |
def predict(image):
|
224 |
# Preprocess the image
|
225 |
-
|
226 |
|
227 |
# # Make prediction
|
228 |
# with torch.no_grad():
|
|
|
222 |
|
223 |
def predict(image):
|
224 |
# Preprocess the image
|
225 |
+
img_tensor = transform(image).unsqueeze(0) # Add batch dimension
|
226 |
|
227 |
# # Make prediction
|
228 |
# with torch.no_grad():
|