Skip to content

Commit

Permalink
fixed request
Browse files Browse the repository at this point in the history
  • Loading branch information
artiebears13 committed Sep 29, 2024
1 parent 5129722 commit 031ee64
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions duplicates/backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ async def check_video_duplicate_front(video: videoRequestFront):
raise HTTPException(status_code=500, detail="Ошибка сервера")





@app.post("/check-video-duplicate",
response_model=videoLinkResponse,
responses={
Expand Down Expand Up @@ -88,7 +85,7 @@ async def check_video_duplicate(videoLink: videoLinkRequest):
500: {"description": "Ошибка сервера"}
}
)
async def upload_video(file: UploadFile = File(...), confidenceLevel: float=Form(...)):
async def upload_video(file: UploadFile = File(...), confidence_level: float=Form(...)):
print(file.content_type) # Отладочное сообщение
if file.content_type != "video/mp4":
raise HTTPException(status_code=400, detail="Допускаются только файлы MP4.")
Expand Down

0 comments on commit 031ee64

Please sign in to comment.