Updated the model_tsfm.
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def predict(img) -> Tuple[Dict, float]:
|
|
| 47 |
|
| 48 |
# Transform the target image and add a batch dimension
|
| 49 |
#img = get_image(img_path, model_tsfm).unsqueeze(0)
|
| 50 |
-
img = model_tsfm(
|
| 51 |
img = img.unsqueeze(0)
|
| 52 |
|
| 53 |
# Put model into evaluation mode and turn on inference mode
|
|
|
|
| 47 |
|
| 48 |
# Transform the target image and add a batch dimension
|
| 49 |
#img = get_image(img_path, model_tsfm).unsqueeze(0)
|
| 50 |
+
img = model_tsfm(img)
|
| 51 |
img = img.unsqueeze(0)
|
| 52 |
|
| 53 |
# Put model into evaluation mode and turn on inference mode
|