luojunhui 7 달 전
부모
커밋
744e631a74
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      coldStartTasks/multi_modal/generate_text_from_video.py

+ 2 - 1
coldStartTasks/multi_modal/generate_text_from_video.py

@@ -29,10 +29,11 @@ POOL_SIZE = int(config.getConfigValue("video_extract_pool_size"))
 BATCH_SIZE = int(config.getConfigValue("video_extract_batch_size"))
 
 
-def download_file(pq_vid, video_url):
+def download_file(pq_vid, oss_path):
     """
     下载视频文件
     """
+    video_url = "https://rescdn.yishihui.com/" + oss_path
     file_name = "static/{}.mp4".format(pq_vid)
     if os.path.exists(file_name):
         return file_name