Spaces:
Running
Running
Update gen_ppt.py
Browse files- gen_ppt.py +3 -3
gen_ppt.py
CHANGED
|
@@ -24,7 +24,7 @@ def load_config():
|
|
| 24 |
"api_keys": {
|
| 25 |
"gemini_api_key": api_key
|
| 26 |
},
|
| 27 |
-
"api_base_url": api_base_url
|
| 28 |
}
|
| 29 |
|
| 30 |
if api_key:
|
|
@@ -88,9 +88,9 @@ def main():
|
|
| 88 |
continue # 只处理存在 auto 文件夹的目录
|
| 89 |
|
| 90 |
# ✅ 如果 success.txt 已存在,跳过该目录
|
| 91 |
-
success_flag = os.path.join(auto_path, "
|
| 92 |
if os.path.isfile(success_flag):
|
| 93 |
-
print(f"✅
|
| 94 |
continue
|
| 95 |
|
| 96 |
print(f"\n🚀 Processing paper folder: {auto_path}")
|
|
|
|
| 24 |
"api_keys": {
|
| 25 |
"gemini_api_key": api_key
|
| 26 |
},
|
| 27 |
+
"api_base_url": api_base_url
|
| 28 |
}
|
| 29 |
|
| 30 |
if api_key:
|
|
|
|
| 88 |
continue # 只处理存在 auto 文件夹的目录
|
| 89 |
|
| 90 |
# ✅ 如果 success.txt 已存在,跳过该目录
|
| 91 |
+
success_flag = os.path.join(auto_path, "success_ppt.txt")
|
| 92 |
if os.path.isfile(success_flag):
|
| 93 |
+
print(f"✅ success_ppt.txt exists in {auto_path}, skipping...")
|
| 94 |
continue
|
| 95 |
|
| 96 |
print(f"\n🚀 Processing paper folder: {auto_path}")
|