Explorar el Código

update ai_tag_task sleep time & add task shell

liqian hace 1 año
padre
commit
8608a0962b
Se han modificado 4 ficheros con 22 adiciones y 1 borrados
  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