소스 검색

update ai_tag_task sleep time & add task shell

liqian 2 년 전
부모
커밋
8608a0962b
4개의 변경된 파일22개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ai_tag_task.py
  2. 7 0
      ai_tag_task.sh
  3. 7 0
      asr_task.sh
  4. 7 0
      download_videos_task.sh

+ 1 - 1
ai_tag_task.py

@@ -176,7 +176,7 @@ def ai_tags_new(project, table, dt):
     # 获取已asr识别的视频
     asr_folder = 'asr_res'
     retry = 0
-    while retry < 5:
+    while retry < 30:
         asr_file_list = os.listdir(asr_folder)
         if len(asr_file_list) < 2:
             retry += 1

+ 7 - 0
ai_tag_task.sh

@@ -0,0 +1,7 @@
+cd /data/aigc-test
+
+source ~/.bash_profile
+source ~/.bashrc
+conda activate whisper
+
+python ai_tag_task.py

+ 7 - 0
asr_task.sh

@@ -0,0 +1,7 @@
+cd /data/aigc-test
+
+source ~/.bash_profile
+source ~/.bashrc
+conda activate whisper
+
+python asr_task.py

+ 7 - 0
download_videos_task.sh

@@ -0,0 +1,7 @@
+cd /data/aigc-test
+
+source ~/.bash_profile
+source ~/.bashrc
+conda activate whisper
+
+python download_videos_task.py