Spaces:
Build error
Build error
Commit ·
db8139e
1
Parent(s): 7b664db
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def predict(img) -> Tuple[Dict, float]:
|
|
| 37 |
|
| 38 |
# Transform the target image and add a batch dimension
|
| 39 |
img = effnetb2_transforms(img).unsqueeze(0)
|
| 40 |
-
pix = np.array(img
|
| 41 |
|
| 42 |
# Put model into evaluation mode and turn on inference mode
|
| 43 |
effnetb2.eval()
|
|
|
|
| 37 |
|
| 38 |
# Transform the target image and add a batch dimension
|
| 39 |
img = effnetb2_transforms(img).unsqueeze(0)
|
| 40 |
+
pix = np.array(img)
|
| 41 |
|
| 42 |
# Put model into evaluation mode and turn on inference mode
|
| 43 |
effnetb2.eval()
|