Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,6 +40,11 @@ categories = [
|
|
| 40 |
"a coat", "high heels", "a scarf", "sunglasses", "a hat"
|
| 41 |
]
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
@app.post("/analyze")
|
| 44 |
async def analyze_image(file: UploadFile = File(...)):
|
| 45 |
# 1. Lire l'image envoyée par l'utilisateur
|
|
|
|
| 40 |
"a coat", "high heels", "a scarf", "sunglasses", "a hat"
|
| 41 |
]
|
| 42 |
|
| 43 |
+
# Ajoutez cette route AVANT votre route /analyze
|
| 44 |
+
@app.get("/")
|
| 45 |
+
def read_root():
|
| 46 |
+
return {"message": "Fashion Detection API is running!", "status": "OK"}
|
| 47 |
+
|
| 48 |
@app.post("/analyze")
|
| 49 |
async def analyze_image(file: UploadFile = File(...)):
|
| 50 |
# 1. Lire l'image envoyée par l'utilisateur
|