Seniordev22 commited on
Commit
c16fb93
·
verified ·
1 Parent(s): 8634b82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -9,6 +9,8 @@ app = FastAPI(title="Make Me Bald API 😎",
9
 
10
  @app.post("/make-bald/")
11
  async def bald_endpoint(file: UploadFile = File(...)):
 
 
12
  if not file.content_type.startswith("image/"):
13
  raise HTTPException(status_code=400, detail="Sirf image file upload kar bhai! (jpeg/png etc.)")
14
 
 
9
 
10
  @app.post("/make-bald/")
11
  async def bald_endpoint(file: UploadFile = File(...)):
12
+ print("=== REQUEST AAYI /make-bald/ PE ===")
13
+ print(f"Filename: {file.filename}, Content-Type: {file.content_type}, Size: {file.size}")
14
  if not file.content_type.startswith("image/"):
15
  raise HTTPException(status_code=400, detail="Sirf image file upload kar bhai! (jpeg/png etc.)")
16