sharktide commited on
Commit
6172b16
·
1 Parent(s): fc736fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def preprocess_image(image_file):
32
  img_array = np.expand_dims(img_array, axis=0) # Add batch dimension
33
  return img_array
34
 
35
- @app.post("/predict/")
36
  async def predict(file: UploadFile = File(...)):
37
  try:
38
  img_array = preprocess_image(file.file)
 
32
  img_array = np.expand_dims(img_array, axis=0) # Add batch dimension
33
  return img_array
34
 
35
+ @app.post("/predict")
36
  async def predict(file: UploadFile = File(...)):
37
  try:
38
  img_array = preprocess_image(file.file)