Spaces:
Runtime error
Runtime error
Commit
·
c1ddd72
1
Parent(s):
a065fd2
Upload 52 files
Browse files
requirements.txt
CHANGED
@@ -1,15 +1,159 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
dirtyjson
|
15 |
gradio
|
|
|
1 |
+
aiohttp==3.8.4
|
2 |
+
aiosignal==1.3.1
|
3 |
+
anyio==3.6.2
|
4 |
+
apify-client==1.0.0
|
5 |
+
asttokens==2.2.1
|
6 |
+
async-timeout==4.0.2
|
7 |
+
attrs==22.2.0
|
8 |
+
backcall==0.2.0
|
9 |
+
backoff==2.2.1
|
10 |
+
boto3==1.26.122
|
11 |
+
botocore==1.29.122
|
12 |
+
cachetools==5.3.0
|
13 |
+
certifi==2022.12.7
|
14 |
+
charset-normalizer==3.1.0
|
15 |
+
chromadb==0.3.21
|
16 |
+
click==8.1.3
|
17 |
+
clickhouse-connect==0.5.22
|
18 |
+
colorama==0.4.6
|
19 |
+
comm==0.1.3
|
20 |
+
contourpy==1.0.7
|
21 |
+
cycler==0.11.0
|
22 |
+
dataclasses-json==0.5.7
|
23 |
+
debugpy==1.6.7
|
24 |
+
decorator==5.1.1
|
25 |
+
deeplake==3.3.2
|
26 |
+
dill==0.3.6
|
27 |
+
dirtyjson==1.0.8
|
28 |
+
duckdb==0.7.1
|
29 |
+
entrypoints==0.4
|
30 |
+
executing==1.2.0
|
31 |
+
fastapi==0.95.1
|
32 |
+
filelock==3.12.0
|
33 |
+
fonttools==4.39.3
|
34 |
+
frozenlist==1.3.3
|
35 |
+
fsspec==2023.4.0
|
36 |
+
google-api-core==2.11.0
|
37 |
+
google-api-python-client==2.86.0
|
38 |
+
google-auth==2.17.3
|
39 |
+
google-auth-httplib2==0.1.0
|
40 |
+
google-search-results==2.4.2
|
41 |
+
googleapis-common-protos==1.59.0
|
42 |
+
greenlet==2.0.2
|
43 |
+
grpcio==1.54.0
|
44 |
+
grpcio-tools==1.54.0
|
45 |
+
h11==0.14.0
|
46 |
+
h2==4.1.0
|
47 |
+
hnswlib==0.7.0
|
48 |
+
hpack==4.0.0
|
49 |
+
httpcore==0.16.3
|
50 |
+
httplib2==0.22.0
|
51 |
+
httptools==0.5.0
|
52 |
+
httpx==0.23.3
|
53 |
+
huggingface-hub==0.14.1
|
54 |
+
humbug==0.3.1
|
55 |
+
hyperframe==6.0.1
|
56 |
+
idna==3.4
|
57 |
+
ipykernel==6.22.0
|
58 |
+
ipython==8.12.0
|
59 |
+
jedi==0.18.2
|
60 |
+
Jinja2==3.1.2
|
61 |
+
jmespath==1.0.1
|
62 |
+
joblib==1.2.0
|
63 |
+
jupyter_client==8.1.0
|
64 |
+
jupyter_core==5.3.0
|
65 |
+
kiwisolver==1.4.4
|
66 |
+
langchain==0.0.133
|
67 |
+
lz4==4.3.2
|
68 |
+
markdown-it-py==2.2.0
|
69 |
+
MarkupSafe==2.1.2
|
70 |
+
marshmallow==3.19.0
|
71 |
+
marshmallow-enum==1.5.1
|
72 |
+
matplotlib==3.7.1
|
73 |
+
matplotlib-inline==0.1.6
|
74 |
+
mdurl==0.1.2
|
75 |
+
monotonic==1.6
|
76 |
+
mpmath==1.3.0
|
77 |
+
multidict==6.0.4
|
78 |
+
multiprocess==0.70.14
|
79 |
+
mypy-extensions==1.0.0
|
80 |
+
nest-asyncio==1.5.6
|
81 |
+
networkx==3.1
|
82 |
+
nltk==3.8.1
|
83 |
+
numcodecs==0.11.0
|
84 |
+
numpy==1.24.2
|
85 |
+
objprint==0.2.2
|
86 |
+
openai==0.27.4
|
87 |
+
openapi-schema-pydantic==1.2.4
|
88 |
+
orjson==3.8.11
|
89 |
+
packaging==23.0
|
90 |
+
pandas==2.0.0
|
91 |
+
parso==0.8.3
|
92 |
+
pathos==0.3.0
|
93 |
+
pickleshare==0.7.5
|
94 |
+
Pillow==9.5.0
|
95 |
+
platformdirs==3.2.0
|
96 |
+
posthog==3.0.1
|
97 |
+
pox==0.3.2
|
98 |
+
ppft==1.7.6.6
|
99 |
+
prompt-toolkit==3.0.38
|
100 |
+
protobuf==4.22.3
|
101 |
+
psutil==5.9.4
|
102 |
+
pure-eval==0.2.2
|
103 |
+
py==1.11.0
|
104 |
+
pyasn1==0.5.0
|
105 |
+
pyasn1-modules==0.3.0
|
106 |
+
pydantic==1.10.7
|
107 |
+
Pygments==2.14.0
|
108 |
+
PyJWT==2.6.0
|
109 |
+
pyparsing==3.0.9
|
110 |
+
python-dateutil==2.8.2
|
111 |
+
python-dotenv==1.0.0
|
112 |
+
python-leetcode==1.2.1
|
113 |
+
pytz==2023.3
|
114 |
+
pywin32==306
|
115 |
+
PyYAML==6.0
|
116 |
+
pyzmq==25.0.2
|
117 |
+
qdrant-client==1.1.6
|
118 |
+
regex==2023.3.23
|
119 |
+
requests==2.28.2
|
120 |
+
retry==0.9.2
|
121 |
+
rfc3986==1.5.0
|
122 |
+
rich==13.3.5
|
123 |
+
rsa==4.9
|
124 |
+
s3transfer==0.6.0
|
125 |
+
scikit-learn==1.2.2
|
126 |
+
scipy==1.10.1
|
127 |
+
seaborn==0.12.2
|
128 |
+
sentence-transformers==2.2.2
|
129 |
+
sentencepiece==0.1.98
|
130 |
+
six==1.16.0
|
131 |
+
sniffio==1.3.0
|
132 |
+
SQLAlchemy==1.4.47
|
133 |
+
stack-data==0.6.2
|
134 |
+
starlette==0.26.1
|
135 |
+
sympy==1.11.1
|
136 |
+
tenacity==8.2.2
|
137 |
+
threadpoolctl==3.1.0
|
138 |
+
tiktoken==0.3.3
|
139 |
+
tokenizers==0.13.3
|
140 |
+
torch==2.0.0
|
141 |
+
torchvision==0.15.1
|
142 |
+
tornado==6.2
|
143 |
+
tqdm==4.65.0
|
144 |
+
traitlets==5.9.0
|
145 |
+
transformers==4.28.1
|
146 |
+
typing-inspect==0.8.0
|
147 |
+
typing_extensions==4.5.0
|
148 |
+
tzdata==2023.3
|
149 |
+
uritemplate==4.1.1
|
150 |
+
urllib3==1.26.15
|
151 |
+
uvicorn==0.22.0
|
152 |
+
viztracer==0.15.6
|
153 |
+
watchfiles==0.19.0
|
154 |
+
wcwidth==0.2.6
|
155 |
+
websockets==11.0.2
|
156 |
+
yarl==1.8.2
|
157 |
+
zstandard==0.21.0
|
158 |
dirtyjson
|
159 |
gradio
|
swarmai/Swarm.py
CHANGED
@@ -219,6 +219,7 @@ class Swarm:
|
|
219 |
# first, try to delete the directory with all the data
|
220 |
try:
|
221 |
shutil.rmtree(self.data_dir)
|
|
|
222 |
except Exception:
|
223 |
pass
|
224 |
|
|
|
219 |
# first, try to delete the directory with all the data
|
220 |
try:
|
221 |
shutil.rmtree(self.data_dir)
|
222 |
+
self.log(f"Deleted the directory {self.data_dir}")
|
223 |
except Exception:
|
224 |
pass
|
225 |
|
swarmai/utils/memory/VectorMemory.py
CHANGED
@@ -11,6 +11,8 @@ def synchronized_mem(method):
|
|
11 |
def wrapper(self, *args, **kwargs):
|
12 |
with self.lock:
|
13 |
try:
|
|
|
|
|
14 |
return method(self, *args, **kwargs)
|
15 |
except Exception as e:
|
16 |
print(f"Failed to execute {method.__name__}: {e}")
|
|
|
11 |
def wrapper(self, *args, **kwargs):
|
12 |
with self.lock:
|
13 |
try:
|
14 |
+
test = args
|
15 |
+
test_2 = kwargs
|
16 |
return method(self, *args, **kwargs)
|
17 |
except Exception as e:
|
18 |
print(f"Failed to execute {method.__name__}: {e}")
|
swarmai/utils/memory/__pycache__/VectorMemory.cpython-310.pyc
CHANGED
Binary files a/swarmai/utils/memory/__pycache__/VectorMemory.cpython-310.pyc and b/swarmai/utils/memory/__pycache__/VectorMemory.cpython-310.pyc differ
|
|