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