Spaces:
Runtime error
Runtime error
Commit ·
9bdb201
1
Parent(s): 115c771
fix: predict_fn bug fix
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ transform = transforms.Compose([
|
|
| 19 |
])
|
| 20 |
|
| 21 |
|
| 22 |
-
def predict_fn(
|
| 23 |
"""
|
| 24 |
This function will predict the class of an image
|
| 25 |
:param image_path: The path of the image
|
|
|
|
| 19 |
])
|
| 20 |
|
| 21 |
|
| 22 |
+
def predict_fn(image, raw_output=False):
|
| 23 |
"""
|
| 24 |
This function will predict the class of an image
|
| 25 |
:param image_path: The path of the image
|