ZHIWEI666 commited on
Commit
44e64bb
·
verified ·
1 Parent(s): d52d395

支持视频边下边播

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -329,7 +329,7 @@ def upload_file(file: UploadFile = File(...), file_type: str = Form(...), curren
329
  elif file_type == "cover":
330
  max_size = 5 * 1024 * 1024
331
  elif file_type == "post_video":
332
- max_size = 50 * 1024 * 1024
333
 
334
  if len(content) > max_size:
335
  raise HTTPException(status_code=400, detail=f"文件过大,{file_type} 类型请限制在 {max_size // (1024*1024)}MB 以内")
 
329
  elif file_type == "cover":
330
  max_size = 5 * 1024 * 1024
331
  elif file_type == "post_video":
332
+ max_size = 100 * 1024 * 1024
333
 
334
  if len(content) > max_size:
335
  raise HTTPException(status_code=400, detail=f"文件过大,{file_type} 类型请限制在 {max_size // (1024*1024)}MB 以内")