Spaces:
Build error
Build error
Commit
·
57474b8
1
Parent(s):
cbae11c
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def predict(img) -> Tuple[Dict, float]:
|
|
| 48 |
start_time = timer()
|
| 49 |
|
| 50 |
# Transform the target image and add a batch dimension
|
| 51 |
-
img1=PIL.Image.open(img
|
| 52 |
img1 = effnetb2_transforms(img1).unsqueeze(0)
|
| 53 |
pix = normalize_2d(np.array(img))
|
| 54 |
|
|
|
|
| 48 |
start_time = timer()
|
| 49 |
|
| 50 |
# Transform the target image and add a batch dimension
|
| 51 |
+
img1=PIL.Image.open(img)
|
| 52 |
img1 = effnetb2_transforms(img1).unsqueeze(0)
|
| 53 |
pix = normalize_2d(np.array(img))
|
| 54 |
|