Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -616,7 +616,7 @@ async def index():
|
|
616 |
return HTML_CONTENT
|
617 |
|
618 |
@app.post("/upload")
|
619 |
-
async def handle_upload(file: UploadFile = File(...)
|
620 |
content_range = request.headers.get('Content-Range')
|
621 |
if not content_range:
|
622 |
raise HTTPException(status_code=400, detail="Content-Range header is missing")
|
|
|
616 |
return HTML_CONTENT
|
617 |
|
618 |
@app.post("/upload")
|
619 |
+
async def handle_upload(request: Request, file: UploadFile = File(...)):
|
620 |
content_range = request.headers.get('Content-Range')
|
621 |
if not content_range:
|
622 |
raise HTTPException(status_code=400, detail="Content-Range header is missing")
|