Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def preprocess_image(image):
|
|
24 |
return img_array
|
25 |
|
26 |
# Function to perform inference
|
27 |
-
def predict(
|
28 |
img = preprocess_image(img_path)
|
29 |
model = load_model(r"inceptionv3_classs.h5")
|
30 |
preds = model.predict(img) # Get the model predictions
|
|
|
24 |
return img_array
|
25 |
|
26 |
# Function to perform inference
|
27 |
+
def predict(img_path):
|
28 |
img = preprocess_image(img_path)
|
29 |
model = load_model(r"inceptionv3_classs.h5")
|
30 |
preds = model.predict(img) # Get the model predictions
|