ak0601 commited on
Commit
d9f5f3b
·
verified ·
1 Parent(s): 8cacd86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(...),occasion: str = Form(...),Place: str = Form(...),type_of_feedback: 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"]: