Laramie2 commited on
Commit
0c3e07d
·
verified ·
1 Parent(s): 1ee8821

Update gen_pr.py

Browse files
Files changed (1) hide show
  1. gen_pr.py +4 -4
gen_pr.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:
@@ -93,9 +93,9 @@ def main():
93
  continue # 只处理存在 auto 文件夹的目录
94
 
95
  # ✅ 如果 success.txt 已存在,跳过该目录
96
- success_flag = os.path.join(auto_path, "success.txt")
97
  if os.path.isfile(success_flag):
98
- print(f"✅ success.txt exists in {auto_path}, skipping...")
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, "success_dag.txt")
263
  open(success_file_path, "w").close()
264
 
265
 
 
24
  "api_keys": {
25
  "gemini_api_key": api_key
26
  },
27
+ "api_base_url": api_base_url
28
  }
29
 
30
  if api_key:
 
93
  continue # 只处理存在 auto 文件夹的目录
94
 
95
  # ✅ 如果 success.txt 已存在,跳过该目录
96
+ success_flag = os.path.join(auto_path, "success_pr.txt")
97
  if os.path.isfile(success_flag):
98
+ print(f"✅ success_pr.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_pr.txt")
263
  open(success_file_path, "w").close()
264
 
265