Bitirme commited on
Commit
e233ad4
1 Parent(s): 26e6832

update file

Browse files
Files changed (1) hide show
  1. api.py +1 -1
api.py CHANGED
@@ -39,7 +39,7 @@ def read_file_as_image(data) -> np.ndarray:
39
  raise HTTPException(status_code=400, detail=f"Image processing error: {str(e)}")
40
 
41
 
42
- @app.post("/predict/")
43
  async def predict(file: UploadFile = File(...)):
44
  image_data = await file.read()
45
 
 
39
  raise HTTPException(status_code=400, detail=f"Image processing error: {str(e)}")
40
 
41
 
42
+ @app.post("/predict")
43
  async def predict(file: UploadFile = File(...)):
44
  image_data = await file.read()
45