Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files
babyagi/babyagi.py
CHANGED
@@ -864,7 +864,7 @@ async def completion(message: str, history, c=None, d=None, prompt="γγͺγγ―
|
|
864 |
for t in tasks_storage.get_task_names():
|
865 |
print(" β’ " + str(t))
|
866 |
yield str(t)
|
867 |
-
result_all += str(t)
|
868 |
|
869 |
# Step 1: Pull the first incomplete task
|
870 |
task = tasks_storage.popleft()
|
@@ -872,7 +872,7 @@ async def completion(message: str, history, c=None, d=None, prompt="γγͺγγ―
|
|
872 |
yield "\033[92m\033[1m" + "\n*****NEXT TASK*****\n" + "\033[0m\033[0m"
|
873 |
print(str(task["task_name"]))
|
874 |
yield str(task["task_name"])
|
875 |
-
result_all += str(task["task_name"])
|
876 |
|
877 |
# Send to execution function to complete the task based on the context
|
878 |
result = execution_agent(OBJECTIVE, str(task["task_name"]))
|
@@ -880,7 +880,7 @@ async def completion(message: str, history, c=None, d=None, prompt="γγͺγγ―
|
|
880 |
yield "\033[93m\033[1m" + "\n*****TASK RESULT*****\n" + "\033[0m\033[0m"
|
881 |
print(result)
|
882 |
yield result
|
883 |
-
result_all += result
|
884 |
yield result_all
|
885 |
|
886 |
# Step 2: Enrich result and store in the results storage
|
|
|
864 |
for t in tasks_storage.get_task_names():
|
865 |
print(" β’ " + str(t))
|
866 |
yield str(t)
|
867 |
+
result_all += str(t)+"\r\n"
|
868 |
|
869 |
# Step 1: Pull the first incomplete task
|
870 |
task = tasks_storage.popleft()
|
|
|
872 |
yield "\033[92m\033[1m" + "\n*****NEXT TASK*****\n" + "\033[0m\033[0m"
|
873 |
print(str(task["task_name"]))
|
874 |
yield str(task["task_name"])
|
875 |
+
result_all += str(task["task_name"])+"\r\n"
|
876 |
|
877 |
# Send to execution function to complete the task based on the context
|
878 |
result = execution_agent(OBJECTIVE, str(task["task_name"]))
|
|
|
880 |
yield "\033[93m\033[1m" + "\n*****TASK RESULT*****\n" + "\033[0m\033[0m"
|
881 |
print(result)
|
882 |
yield result
|
883 |
+
result_all += result+"\r\n"
|
884 |
yield result_all
|
885 |
|
886 |
# Step 2: Enrich result and store in the results storage
|
chroma/6be188e8-482c-4e1e-8fbd-8157045b1e21/data_level0.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1676000
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0862572a929e2a324acd4965e1d612f7afa5ba6d9f0d3839be5cac6ff1c71fe2
|
3 |
size 1676000
|
chroma/6be188e8-482c-4e1e-8fbd-8157045b1e21/length.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4000
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2cbf932e448ee30224b3ab0a18d2e82dde9f07ed94678cb88f1f5dc4705a0f96
|
3 |
size 4000
|
chroma/chroma.sqlite3
CHANGED
Binary files a/chroma/chroma.sqlite3 and b/chroma/chroma.sqlite3 differ
|
|