Skip to content

Commit

Permalink
fixed a bug with input shape for species model
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomigreen committed Jun 16, 2021
1 parent 5923870 commit dbb4468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def main():
image = Image.open(uploaded_file)

# Convert to numpy array with proper dimensions for prediction
img_array = convert_to_predictable(image)
img_array = convert_to_predictable(image, model.input_shape[1:3])

# predict species
species = predict_species(model, img_array)
Expand Down

0 comments on commit dbb4468

Please sign in to comment.