MODLI commited on
Commit
1a0da4b
·
verified ·
1 Parent(s): 61d50fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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