Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ except Exception as e:
|
|
45 |
|
46 |
# --- FastAPI Endpoint ---
|
47 |
@app.post("/rate-outfit/")
|
48 |
-
async def rate_outfit(image: UploadFile = File(...), category: str = Form(
|
49 |
logger.info(f"Received request to rate outfit. Category: {category}, Image: {image.filename}, Content-Type: {image.content_type}")
|
50 |
|
51 |
if image.content_type not in ["image/jpeg", "image/png", "image/jpg"]:
|
|
|
45 |
|
46 |
# --- FastAPI Endpoint ---
|
47 |
@app.post("/rate-outfit/")
|
48 |
+
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")):
|
49 |
logger.info(f"Received request to rate outfit. Category: {category}, Image: {image.filename}, Content-Type: {image.content_type}")
|
50 |
|
51 |
if image.content_type not in ["image/jpeg", "image/png", "image/jpg"]:
|