kenken999 commited on
Commit
bcec4b2
โ€ข
1 Parent(s): 633ca91
Files changed (1) hide show
  1. babyagi/babyagi.py +5 -2
babyagi/babyagi.py CHANGED
@@ -164,7 +164,7 @@ OBJECTIVE = "ใƒœใƒƒใƒˆใฎๆ€ง่ƒฝใ‚’ใ‚ˆใใ™ใ‚‹ๆ–นๆณ•ใ€€ๆ—ฅๆœฌ่ชžใง่ชฌๆ˜Ž"
164
  OBJECTIVE = f"""ใƒใƒฃใƒƒใƒˆใƒœใƒƒใƒˆใงใฎๅบƒๅ‘Šๅฑ•้–‹"""
165
 
166
  print(args[0])
167
- OBJECTIVE = args[0]
168
 
169
  INITIAL_TASK = os.getenv("INITIAL_TASK", os.getenv("FIRST_TASK", ""))
170
 
@@ -867,7 +867,10 @@ def main():
867
  tasks_storage.replace(prioritized_tasks)
868
 
869
  # Sleep a bit before checking the task list again
870
- time.sleep(15)
 
 
 
871
  else:
872
  print('Done.')
873
  loop = False
 
164
  OBJECTIVE = f"""ใƒใƒฃใƒƒใƒˆใƒœใƒƒใƒˆใงใฎๅบƒๅ‘Šๅฑ•้–‹"""
165
 
166
  print(args[0])
167
+ OBJECTIVE = args[1]
168
 
169
  INITIAL_TASK = os.getenv("INITIAL_TASK", os.getenv("FIRST_TASK", ""))
170
 
 
867
  tasks_storage.replace(prioritized_tasks)
868
 
869
  # Sleep a bit before checking the task list again
870
+ time.sleep(3)
871
+ count += 1
872
+ if count > 5:
873
+ loop = False
874
  else:
875
  print('Done.')
876
  loop = False