Spaces:
Running
Running
Update gen_poster.py
Browse files- gen_poster.py +3 -3
gen_poster.py
CHANGED
|
@@ -93,9 +93,9 @@ def main():
|
|
| 93 |
continue # 只处理存在 auto 文件夹的目录
|
| 94 |
|
| 95 |
# ✅ 如果 success.txt 已存在,跳过该目录
|
| 96 |
-
success_flag = os.path.join(auto_path, "
|
| 97 |
if os.path.isfile(success_flag):
|
| 98 |
-
print(f"✅
|
| 99 |
continue
|
| 100 |
|
| 101 |
print(f"\n🚀 Processing paper folder: {auto_path}")
|
|
@@ -259,7 +259,7 @@ def main():
|
|
| 259 |
|
| 260 |
# =============================================================
|
| 261 |
# 在auto目录下创建success.txt作为标志
|
| 262 |
-
success_file_path = os.path.join(auto_path, "
|
| 263 |
open(success_file_path, "w").close()
|
| 264 |
|
| 265 |
|
|
|
|
| 93 |
continue # 只处理存在 auto 文件夹的目录
|
| 94 |
|
| 95 |
# ✅ 如果 success.txt 已存在,跳过该目录
|
| 96 |
+
success_flag = os.path.join(auto_path, "success_poster.txt")
|
| 97 |
if os.path.isfile(success_flag):
|
| 98 |
+
print(f"✅ success_poster.txt exists in {auto_path}, skipping...")
|
| 99 |
continue
|
| 100 |
|
| 101 |
print(f"\n🚀 Processing paper folder: {auto_path}")
|
|
|
|
| 259 |
|
| 260 |
# =============================================================
|
| 261 |
# 在auto目录下创建success.txt作为标志
|
| 262 |
+
success_file_path = os.path.join(auto_path, "success_poster.txt")
|
| 263 |
open(success_file_path, "w").close()
|
| 264 |
|
| 265 |
|