Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|