update file
Browse files
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 |
|