Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
satrio142 committed Dec 23, 2023
1 parent ab5a621 commit dd6902a
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 @@ -39,7 +39,7 @@ async def predict_image(img: UploadFile, response: Response):
image = np.expand_dims(image, axis=0)

# Predict the class of the image
arr = model.predict(image, batch_size=10)
arr = model.predict(image)

# Mengambil indeks kelas dengan nilai probabilitas tertinggi
predicted_class_index = np.argmax(arr)
Expand Down

0 comments on commit dd6902a

Please sign in to comment.