kenken999 commited on
Commit
f9fd59a
โ€ข
1 Parent(s): 9ea5201
Files changed (1) hide show
  1. babyagi/babyagi.py +3 -1
babyagi/babyagi.py CHANGED
@@ -163,9 +163,11 @@ JOIN_EXISTING_OBJECTIVE = False
163
  OBJECTIVE = "ใƒœใƒƒใƒˆใฎๆ€ง่ƒฝใ‚’ใ‚ˆใใ™ใ‚‹ๆ–นๆณ•ใ€€ๆ—ฅๆœฌ่ชžใง่ชฌๆ˜Ž"
164
  OBJECTIVE = f"""ใƒใƒฃใƒƒใƒˆใƒœใƒƒใƒˆใงใฎๅบƒๅ‘Šๅฑ•้–‹"""
165
  args = sys.argv
166
- if args:
167
  print(args[1])
168
  OBJECTIVE = args[1]
 
 
169
 
170
  INITIAL_TASK = os.getenv("INITIAL_TASK", os.getenv("FIRST_TASK", ""))
171
 
 
163
  OBJECTIVE = "ใƒœใƒƒใƒˆใฎๆ€ง่ƒฝใ‚’ใ‚ˆใใ™ใ‚‹ๆ–นๆณ•ใ€€ๆ—ฅๆœฌ่ชžใง่ชฌๆ˜Ž"
164
  OBJECTIVE = f"""ใƒใƒฃใƒƒใƒˆใƒœใƒƒใƒˆใงใฎๅบƒๅ‘Šๅฑ•้–‹"""
165
  args = sys.argv
166
+ if len(args) > 1:
167
  print(args[1])
168
  OBJECTIVE = args[1]
169
+ else:
170
+ print("not args")
171
 
172
  INITIAL_TASK = os.getenv("INITIAL_TASK", os.getenv("FIRST_TASK", ""))
173