Spaces:
Sleeping
Sleeping
Update app.py
Browse files44 unmodified lines4546474849505144 unmodified lines# --- FastAPI Endpoint ---@app.post("/rate-outfit/")async def rate_outfit(image: UploadFile = File(...), category: str = Form(...),occasion: str = Form(...),Place: str = Form(...),type_of_feedback: str = Form(...)):logger.info(f"Received request to rate outfit. Category: {category}, Image: {image.filename}, Content-Type: {image.content_type}")if image.content_type not in ["image/jpeg", "image/png", "image/jpg"]:44 unmodified lines4546474849505144 unmodified lines# --- FastAPI Endpoint ---@app.post("/rate-outfit/")async def rate_outfit(image: UploadFile = File(...), category: str = Form("random"),occasion: str = Form("random"),Place: str = Form("random"),type_of_feedback: str = Form("random")):logger.info(f"Received request to rate outfit. Category: {category}, Image: {image.filename}, Content-Type: {image.content_type}")if image.content_type not in ["image/jpeg", "image/png", "image/jpg"]:
app.py+1-1