kltn20133118 commited on
Commit
a193475
·
verified ·
1 Parent(s): 0aa4d37

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -2
main.py CHANGED
@@ -337,8 +337,6 @@ async def override_generate_question(user_id: str, current_user_email: str = Dep
337
  @app.post("/api/v1/default/upload_image", dependencies=[Depends(JWTBearer())], tags=["Default"])
338
  async def override_upload_image(user_id: str = Form(None), file: UploadFile = File(...),
339
  current_user_email: str = Depends(get_current_user_email)):
340
- if file.file.size > 10 * 1024 * 1024:
341
- raise HTTPException(status_code=413, detail="File too large")
342
  check = support_function.check_value_user_id(user_id, current_user_email)
343
  if check is not True:
344
  return check
 
337
  @app.post("/api/v1/default/upload_image", dependencies=[Depends(JWTBearer())], tags=["Default"])
338
  async def override_upload_image(user_id: str = Form(None), file: UploadFile = File(...),
339
  current_user_email: str = Depends(get_current_user_email)):
 
 
340
  check = support_function.check_value_user_id(user_id, current_user_email)
341
  if check is not True:
342
  return check