Spaces:
Running
Running
Update app.py
Browse files
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 |
|