rogerxavier commited on
Commit
66038f9
1 Parent(s): 24d89fd

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
api.py CHANGED
@@ -111,7 +111,7 @@ async def execute_all_task(background_tasks: BackgroundTasks,file_list: list = [
111
  if allow_submit:
112
  #如果请求中设置允许上传output.mp4
113
  cover_img = cover_image.file.read()
114
- cover_img_data = Image.open(io.BytesIO(img)).convert("L").convert("RGB")
115
  cover_path_to_image = os.path.join(cover_path, f"cover.jpg")
116
  cover_img_data.save(cover_path_to_image)
117
  #video数据从meta用户请求获取,至于
 
111
  if allow_submit:
112
  #如果请求中设置允许上传output.mp4
113
  cover_img = cover_image.file.read()
114
+ cover_img_data = Image.open(io.BytesIO(cover_image)).convert("L").convert("RGB")
115
  cover_path_to_image = os.path.join(cover_path, f"cover.jpg")
116
  cover_img_data.save(cover_path_to_image)
117
  #video数据从meta用户请求获取,至于