Spaces:
Sleeping
Sleeping
df
Browse files- 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[
|
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(
|
|
|
|
|
|
|
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
|