lordspline
commited on
Commit
•
7a3e44b
1
Parent(s):
eb90ae0
Upload folder using huggingface_hub
Browse files- .DS_Store +0 -0
- .gitignore +167 -0
- LICENSE +201 -0
- README.md +24 -9
- agent.py +310 -0
- app.py +91 -0
- editor.py +67 -0
- prompts/__init__.py +0 -0
- prompts/notetaker.py +4 -0
- prompts/orchestrator.py +69 -0
- prompts/programmer.py +17 -0
- requirements.txt +284 -0
- start_local.sh +1 -0
- start_remote.sh +1 -0
.DS_Store
ADDED
Binary file (8.2 kB). View file
|
|
.gitignore
ADDED
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Byte-compiled / optimized / DLL files
|
2 |
+
__pycache__/
|
3 |
+
*.py[cod]
|
4 |
+
*$py.class
|
5 |
+
|
6 |
+
orb.py
|
7 |
+
orb_app.py
|
8 |
+
dev
|
9 |
+
prompts/orb.py
|
10 |
+
screenshots
|
11 |
+
temp
|
12 |
+
|
13 |
+
# C extensions
|
14 |
+
*.so
|
15 |
+
|
16 |
+
# Distribution / packaging
|
17 |
+
.Python
|
18 |
+
build/
|
19 |
+
develop-eggs/
|
20 |
+
dist/
|
21 |
+
downloads/
|
22 |
+
eggs/
|
23 |
+
.eggs/
|
24 |
+
lib/
|
25 |
+
lib64/
|
26 |
+
parts/
|
27 |
+
sdist/
|
28 |
+
var/
|
29 |
+
wheels/
|
30 |
+
share/python-wheels/
|
31 |
+
*.egg-info/
|
32 |
+
.installed.cfg
|
33 |
+
*.egg
|
34 |
+
MANIFEST
|
35 |
+
|
36 |
+
# PyInstaller
|
37 |
+
# Usually these files are written by a python script from a template
|
38 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
39 |
+
*.manifest
|
40 |
+
*.spec
|
41 |
+
|
42 |
+
# Installer logs
|
43 |
+
pip-log.txt
|
44 |
+
pip-delete-this-directory.txt
|
45 |
+
|
46 |
+
# Unit test / coverage reports
|
47 |
+
htmlcov/
|
48 |
+
.tox/
|
49 |
+
.nox/
|
50 |
+
.coverage
|
51 |
+
.coverage.*
|
52 |
+
.cache
|
53 |
+
nosetests.xml
|
54 |
+
coverage.xml
|
55 |
+
*.cover
|
56 |
+
*.py,cover
|
57 |
+
.hypothesis/
|
58 |
+
.pytest_cache/
|
59 |
+
cover/
|
60 |
+
|
61 |
+
# Translations
|
62 |
+
*.mo
|
63 |
+
*.pot
|
64 |
+
|
65 |
+
# Django stuff:
|
66 |
+
*.log
|
67 |
+
local_settings.py
|
68 |
+
db.sqlite3
|
69 |
+
db.sqlite3-journal
|
70 |
+
|
71 |
+
# Flask stuff:
|
72 |
+
instance/
|
73 |
+
.webassets-cache
|
74 |
+
|
75 |
+
# Scrapy stuff:
|
76 |
+
.scrapy
|
77 |
+
|
78 |
+
# Sphinx documentation
|
79 |
+
docs/_build/
|
80 |
+
|
81 |
+
# PyBuilder
|
82 |
+
.pybuilder/
|
83 |
+
target/
|
84 |
+
|
85 |
+
# Jupyter Notebook
|
86 |
+
.ipynb_checkpoints
|
87 |
+
|
88 |
+
# IPython
|
89 |
+
profile_default/
|
90 |
+
ipython_config.py
|
91 |
+
|
92 |
+
# pyenv
|
93 |
+
# For a library or package, you might want to ignore these files since the code is
|
94 |
+
# intended to run in multiple environments; otherwise, check them in:
|
95 |
+
# .python-version
|
96 |
+
|
97 |
+
# pipenv
|
98 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
99 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
100 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
101 |
+
# install all needed dependencies.
|
102 |
+
#Pipfile.lock
|
103 |
+
|
104 |
+
# poetry
|
105 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
106 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
107 |
+
# commonly ignored for libraries.
|
108 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
109 |
+
#poetry.lock
|
110 |
+
|
111 |
+
# pdm
|
112 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
113 |
+
#pdm.lock
|
114 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
115 |
+
# in version control.
|
116 |
+
# https://pdm.fming.dev/#use-with-ide
|
117 |
+
.pdm.toml
|
118 |
+
|
119 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
120 |
+
__pypackages__/
|
121 |
+
|
122 |
+
# Celery stuff
|
123 |
+
celerybeat-schedule
|
124 |
+
celerybeat.pid
|
125 |
+
|
126 |
+
# SageMath parsed files
|
127 |
+
*.sage.py
|
128 |
+
|
129 |
+
# Environments
|
130 |
+
.env*
|
131 |
+
.venv
|
132 |
+
env/
|
133 |
+
venv/
|
134 |
+
ENV/
|
135 |
+
env.bak/
|
136 |
+
venv.bak/
|
137 |
+
|
138 |
+
# Spyder project settings
|
139 |
+
.spyderproject
|
140 |
+
.spyproject
|
141 |
+
|
142 |
+
# Rope project settings
|
143 |
+
.ropeproject
|
144 |
+
|
145 |
+
# mkdocs documentation
|
146 |
+
/site
|
147 |
+
|
148 |
+
# mypy
|
149 |
+
.mypy_cache/
|
150 |
+
.dmypy.json
|
151 |
+
dmypy.json
|
152 |
+
|
153 |
+
# Pyre type checker
|
154 |
+
.pyre/
|
155 |
+
|
156 |
+
# pytype static type analyzer
|
157 |
+
.pytype/
|
158 |
+
|
159 |
+
# Cython debug symbols
|
160 |
+
cython_debug/
|
161 |
+
|
162 |
+
# PyCharm
|
163 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
164 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
165 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
166 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
167 |
+
#.idea/
|
LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Apache License
|
2 |
+
Version 2.0, January 2004
|
3 |
+
http://www.apache.org/licenses/
|
4 |
+
|
5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6 |
+
|
7 |
+
1. Definitions.
|
8 |
+
|
9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
11 |
+
|
12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13 |
+
the copyright owner that is granting the License.
|
14 |
+
|
15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
16 |
+
other entities that control, are controlled by, or are under common
|
17 |
+
control with that entity. For the purposes of this definition,
|
18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
19 |
+
direction or management of such entity, whether by contract or
|
20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22 |
+
|
23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24 |
+
exercising permissions granted by this License.
|
25 |
+
|
26 |
+
"Source" form shall mean the preferred form for making modifications,
|
27 |
+
including but not limited to software source code, documentation
|
28 |
+
source, and configuration files.
|
29 |
+
|
30 |
+
"Object" form shall mean any form resulting from mechanical
|
31 |
+
transformation or translation of a Source form, including but
|
32 |
+
not limited to compiled object code, generated documentation,
|
33 |
+
and conversions to other media types.
|
34 |
+
|
35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
36 |
+
Object form, made available under the License, as indicated by a
|
37 |
+
copyright notice that is included in or attached to the work
|
38 |
+
(an example is provided in the Appendix below).
|
39 |
+
|
40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41 |
+
form, that is based on (or derived from) the Work and for which the
|
42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
44 |
+
of this License, Derivative Works shall not include works that remain
|
45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46 |
+
the Work and Derivative Works thereof.
|
47 |
+
|
48 |
+
"Contribution" shall mean any work of authorship, including
|
49 |
+
the original version of the Work and any modifications or additions
|
50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
54 |
+
means any form of electronic, verbal, or written communication sent
|
55 |
+
to the Licensor or its representatives, including but not limited to
|
56 |
+
communication on electronic mailing lists, source code control systems,
|
57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
59 |
+
excluding communication that is conspicuously marked or otherwise
|
60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
61 |
+
|
62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
64 |
+
subsequently incorporated within the Work.
|
65 |
+
|
66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
71 |
+
Work and such Derivative Works in Source or Object form.
|
72 |
+
|
73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76 |
+
(except as stated in this section) patent license to make, have made,
|
77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78 |
+
where such license applies only to those patent claims licensable
|
79 |
+
by such Contributor that are necessarily infringed by their
|
80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
82 |
+
institute patent litigation against any entity (including a
|
83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84 |
+
or a Contribution incorporated within the Work constitutes direct
|
85 |
+
or contributory patent infringement, then any patent licenses
|
86 |
+
granted to You under this License for that Work shall terminate
|
87 |
+
as of the date such litigation is filed.
|
88 |
+
|
89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
90 |
+
Work or Derivative Works thereof in any medium, with or without
|
91 |
+
modifications, and in Source or Object form, provided that You
|
92 |
+
meet the following conditions:
|
93 |
+
|
94 |
+
(a) You must give any other recipients of the Work or
|
95 |
+
Derivative Works a copy of this License; and
|
96 |
+
|
97 |
+
(b) You must cause any modified files to carry prominent notices
|
98 |
+
stating that You changed the files; and
|
99 |
+
|
100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
101 |
+
that You distribute, all copyright, patent, trademark, and
|
102 |
+
attribution notices from the Source form of the Work,
|
103 |
+
excluding those notices that do not pertain to any part of
|
104 |
+
the Derivative Works; and
|
105 |
+
|
106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107 |
+
distribution, then any Derivative Works that You distribute must
|
108 |
+
include a readable copy of the attribution notices contained
|
109 |
+
within such NOTICE file, excluding those notices that do not
|
110 |
+
pertain to any part of the Derivative Works, in at least one
|
111 |
+
of the following places: within a NOTICE text file distributed
|
112 |
+
as part of the Derivative Works; within the Source form or
|
113 |
+
documentation, if provided along with the Derivative Works; or,
|
114 |
+
within a display generated by the Derivative Works, if and
|
115 |
+
wherever such third-party notices normally appear. The contents
|
116 |
+
of the NOTICE file are for informational purposes only and
|
117 |
+
do not modify the License. You may add Your own attribution
|
118 |
+
notices within Derivative Works that You distribute, alongside
|
119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
120 |
+
that such additional attribution notices cannot be construed
|
121 |
+
as modifying the License.
|
122 |
+
|
123 |
+
You may add Your own copyright statement to Your modifications and
|
124 |
+
may provide additional or different license terms and conditions
|
125 |
+
for use, reproduction, or distribution of Your modifications, or
|
126 |
+
for any such Derivative Works as a whole, provided Your use,
|
127 |
+
reproduction, and distribution of the Work otherwise complies with
|
128 |
+
the conditions stated in this License.
|
129 |
+
|
130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
132 |
+
by You to the Licensor shall be under the terms and conditions of
|
133 |
+
this License, without any additional terms or conditions.
|
134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135 |
+
the terms of any separate license agreement you may have executed
|
136 |
+
with Licensor regarding such Contributions.
|
137 |
+
|
138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
140 |
+
except as required for reasonable and customary use in describing the
|
141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
142 |
+
|
143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144 |
+
agreed to in writing, Licensor provides the Work (and each
|
145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147 |
+
implied, including, without limitation, any warranties or conditions
|
148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150 |
+
appropriateness of using or redistributing the Work and assume any
|
151 |
+
risks associated with Your exercise of permissions under this License.
|
152 |
+
|
153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
154 |
+
whether in tort (including negligence), contract, or otherwise,
|
155 |
+
unless required by applicable law (such as deliberate and grossly
|
156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157 |
+
liable to You for damages, including any direct, indirect, special,
|
158 |
+
incidental, or consequential damages of any character arising as a
|
159 |
+
result of this License or out of the use or inability to use the
|
160 |
+
Work (including but not limited to damages for loss of goodwill,
|
161 |
+
work stoppage, computer failure or malfunction, or any and all
|
162 |
+
other commercial damages or losses), even if such Contributor
|
163 |
+
has been advised of the possibility of such damages.
|
164 |
+
|
165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168 |
+
or other liability obligations and/or rights consistent with this
|
169 |
+
License. However, in accepting such obligations, You may act only
|
170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171 |
+
of any other Contributor, and only if You agree to indemnify,
|
172 |
+
defend, and hold each Contributor harmless for any liability
|
173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
174 |
+
of your accepting any such warranty or additional liability.
|
175 |
+
|
176 |
+
END OF TERMS AND CONDITIONS
|
177 |
+
|
178 |
+
APPENDIX: How to apply the Apache License to your work.
|
179 |
+
|
180 |
+
To apply the Apache License to your work, attach the following
|
181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182 |
+
replaced with your own identifying information. (Don't include
|
183 |
+
the brackets!) The text should be enclosed in the appropriate
|
184 |
+
comment syntax for the file format. We also recommend that a
|
185 |
+
file or class name and description of purpose be included on the
|
186 |
+
same "printed page" as the copyright notice for easier
|
187 |
+
identification within third-party archives.
|
188 |
+
|
189 |
+
Copyright [yyyy] [name of copyright owner]
|
190 |
+
|
191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192 |
+
you may not use this file except in compliance with the License.
|
193 |
+
You may obtain a copy of the License at
|
194 |
+
|
195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
196 |
+
|
197 |
+
Unless required by applicable law or agreed to in writing, software
|
198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200 |
+
See the License for the specific language governing permissions and
|
201 |
+
limitations under the License.
|
README.md
CHANGED
@@ -1,13 +1,28 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji: ⚡
|
4 |
-
colorFrom: red
|
5 |
-
colorTo: green
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 4.28.3
|
8 |
app_file: app.py
|
9 |
-
|
10 |
-
|
11 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
|
|
|
1 |
---
|
2 |
+
title: DevOn
|
|
|
|
|
|
|
|
|
|
|
3 |
app_file: app.py
|
4 |
+
sdk: gradio
|
5 |
+
sdk_version: 4.24.0
|
6 |
---
|
7 |
+
# DevOn
|
8 |
+
|
9 |
+
What if you tried to do what Devin does, but using MultiOn's agents?
|
10 |
+
|
11 |
+
We use 3 separate MultiOn Agents, one each for programming, researching and notetaking.
|
12 |
+
|
13 |
+
Their activities are orchestrated and supervised by an overarching GPT-4V
|
14 |
+
|
15 |
+
Setup:
|
16 |
+
|
17 |
+
- Create a .env.local and set the following env variables:
|
18 |
+
- OPENAI_API_KEY
|
19 |
+
- MULTION_API_KEY
|
20 |
+
- REPLIT_EMAIL (if using the remote API)
|
21 |
+
- REPLIT_PASSWORD (if using the remote API)
|
22 |
+
- ```pip install -r requirements.txt```
|
23 |
+
- If you want to use the local API (need to have the chrome extension installed and API enabled for this): ```bash start_local.sh```
|
24 |
+
- If you want to use the remote API: ```bash start_remote.sh```
|
25 |
+
|
26 |
+
Barebones Demo:
|
27 |
|
28 |
+
https://github.com/lordspline/DevOn/assets/74811063/a8bd9d65-42de-4bf1-a721-79f9b4d772ef
|
agent.py
ADDED
@@ -0,0 +1,310 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from openai import OpenAI
|
2 |
+
from prompts.orchestrator import orchestrator_prompt
|
3 |
+
from prompts.programmer import programmer_notes
|
4 |
+
from prompts.notetaker import notetaker_notes
|
5 |
+
from dotenv import load_dotenv
|
6 |
+
import time
|
7 |
+
import multion
|
8 |
+
from multion.client import MultiOn
|
9 |
+
import os
|
10 |
+
|
11 |
+
load_dotenv(".env.local")
|
12 |
+
|
13 |
+
replit_email = os.getenv("REPLIT_EMAIL")
|
14 |
+
replit_password = os.getenv("REPLIT_PASSWORD")
|
15 |
+
|
16 |
+
multion_api_key = os.getenv("MULTION_API_KEY")
|
17 |
+
# multion.login(use_api=True, multion_api_key=multion_api_key)
|
18 |
+
multion = MultiOn(api_key=multion_api_key)
|
19 |
+
|
20 |
+
# runpod_url = os.getenv("RUNPOD_URL")
|
21 |
+
|
22 |
+
image_temp = "https://miro.medium.com/v2/resize:fit:1200/0*n-2bW82Z6m6U2bij.jpeg"
|
23 |
+
|
24 |
+
|
25 |
+
class DevOn:
|
26 |
+
def __init__(self, editor_image, browser_image, scratchpad_image):
|
27 |
+
self.editor_image = editor_image
|
28 |
+
self.browser_image = browser_image
|
29 |
+
self.scratchpad_image = scratchpad_image
|
30 |
+
self.local = os.getenv("WHERE_EXECUTE") == "local"
|
31 |
+
|
32 |
+
self.programmer = multion.sessions.create(
|
33 |
+
url="https://replit.com/login", local=self.local, include_screenshot=True
|
34 |
+
)
|
35 |
+
self.programmer_logged_in = False
|
36 |
+
# self.editor_image = self.programmer.screenshot
|
37 |
+
self.editor_image = multion.sessions.screenshot(
|
38 |
+
session_id=self.programmer.session_id
|
39 |
+
).screenshot
|
40 |
+
print(self.editor_image)
|
41 |
+
time.sleep(1)
|
42 |
+
# print(self.programmer)
|
43 |
+
|
44 |
+
self.researcher = multion.sessions.create(
|
45 |
+
url="https://www.google.com", local=self.local, include_screenshot=True
|
46 |
+
)
|
47 |
+
# self.browser_image = self.researcher.screenshot
|
48 |
+
self.browser_image = multion.sessions.screenshot(
|
49 |
+
session_id=self.researcher.session_id
|
50 |
+
).screenshot
|
51 |
+
time.sleep(1)
|
52 |
+
|
53 |
+
self.notetaker = multion.sessions.create(
|
54 |
+
url="https://anotepad.com/", local=self.local, include_screenshot=True
|
55 |
+
)
|
56 |
+
# self.scratchpad_image = self.notetaker.screenshot
|
57 |
+
self.scratchpad_image = multion.sessions.screenshot(
|
58 |
+
session_id=self.notetaker.session_id
|
59 |
+
).screenshot
|
60 |
+
time.sleep(1)
|
61 |
+
|
62 |
+
self.done = True
|
63 |
+
self.task = ""
|
64 |
+
self.plan = ""
|
65 |
+
self.messages = []
|
66 |
+
self.client = OpenAI()
|
67 |
+
|
68 |
+
def programmer_login(self):
|
69 |
+
if self.local:
|
70 |
+
cmd = "Create a new Python REPL."
|
71 |
+
else:
|
72 |
+
cmd = "Log in with the email {email} and the password {password}. Then create a new Python REPL.".format(
|
73 |
+
email=replit_email, password=replit_password
|
74 |
+
)
|
75 |
+
while True:
|
76 |
+
self.programmer = multion.sessions.step(
|
77 |
+
self.programmer.session_id,
|
78 |
+
cmd=cmd + "\n\n" + programmer_notes,
|
79 |
+
url="https://replit.com/login",
|
80 |
+
include_screenshot=True,
|
81 |
+
)
|
82 |
+
print(self.programmer)
|
83 |
+
print(
|
84 |
+
multion.sessions.screenshot(
|
85 |
+
session_id=self.programmer.session_id
|
86 |
+
).screenshot
|
87 |
+
)
|
88 |
+
# time.sleep(1)
|
89 |
+
# yield ("", self.editor_image, self.browser_image, self.scratchpad_image)
|
90 |
+
# self.editor_image = self.programmer["screenshot"]
|
91 |
+
if self.programmer.status == "DONE":
|
92 |
+
break
|
93 |
+
|
94 |
+
self.editor_image = multion.sessions.screenshot(
|
95 |
+
session_id=self.programmer.session_id
|
96 |
+
).screenshot
|
97 |
+
time.sleep(1)
|
98 |
+
|
99 |
+
def prepare_messages(self):
|
100 |
+
messages = [
|
101 |
+
{"role": "user", "content": orchestrator_prompt},
|
102 |
+
{
|
103 |
+
"role": "user",
|
104 |
+
"content": "The Task given to you is: {task}".format(task=self.task),
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"role": "user",
|
108 |
+
"content": "The current Plan state is: {plan}".format(plan=""),
|
109 |
+
},
|
110 |
+
]
|
111 |
+
for message in self.messages:
|
112 |
+
messages.append(message)
|
113 |
+
|
114 |
+
messages.append(
|
115 |
+
{
|
116 |
+
"role": "user",
|
117 |
+
"content": [
|
118 |
+
{
|
119 |
+
"type": "text",
|
120 |
+
"text": "This is the current state of the Programmer Intern.",
|
121 |
+
},
|
122 |
+
{"type": "image_url", "image_url": {"url": self.editor_image}},
|
123 |
+
],
|
124 |
+
}
|
125 |
+
)
|
126 |
+
messages.append(
|
127 |
+
{
|
128 |
+
"role": "user",
|
129 |
+
"content": [
|
130 |
+
{
|
131 |
+
"type": "text",
|
132 |
+
"text": "This is the current state of the Researcher Intern.",
|
133 |
+
},
|
134 |
+
{"type": "image_url", "image_url": {"url": self.browser_image}},
|
135 |
+
],
|
136 |
+
}
|
137 |
+
)
|
138 |
+
messages.append(
|
139 |
+
{
|
140 |
+
"role": "user",
|
141 |
+
"content": [
|
142 |
+
{
|
143 |
+
"type": "text",
|
144 |
+
"text": "This is the current state of the Notetaker Intern.",
|
145 |
+
},
|
146 |
+
{"type": "image_url", "image_url": {"url": self.scratchpad_image}},
|
147 |
+
],
|
148 |
+
}
|
149 |
+
)
|
150 |
+
return messages
|
151 |
+
|
152 |
+
def execute_action(self, action):
|
153 |
+
|
154 |
+
action_func = action.split(" ", 1)[0]
|
155 |
+
|
156 |
+
if action_func == "submit":
|
157 |
+
self.done = True
|
158 |
+
return
|
159 |
+
elif action_func == "update_plan":
|
160 |
+
action_arg = action.split(" ", 1)[1]
|
161 |
+
self.plan = action_arg
|
162 |
+
return
|
163 |
+
elif action_func == "programmer":
|
164 |
+
action_arg = action.split(" ", 1)[1]
|
165 |
+
while True:
|
166 |
+
self.programmer = multion.sessions.step(
|
167 |
+
self.programmer.session_id,
|
168 |
+
cmd=action_arg + "\n\n" + programmer_notes,
|
169 |
+
url="https://replit.com/login",
|
170 |
+
include_screenshot=True,
|
171 |
+
)
|
172 |
+
print(self.programmer)
|
173 |
+
if self.programmer.status == "NOT SURE":
|
174 |
+
self.messages.append(
|
175 |
+
{
|
176 |
+
"role": "user",
|
177 |
+
"content": "The Programmer says: {message}\n\nYour next reply will go to the programmer.".format(
|
178 |
+
message=self.programmer.message
|
179 |
+
),
|
180 |
+
}
|
181 |
+
)
|
182 |
+
chat_completion = self.client.chat.completions.create(
|
183 |
+
messages=self.prepare_messages(),
|
184 |
+
model="gpt-4-vision-preview",
|
185 |
+
# max_tokens=200,
|
186 |
+
)
|
187 |
+
action_arg = chat_completion.choices[0].message.content
|
188 |
+
self.messages.append({"role": "assistant", "content": action_arg})
|
189 |
+
else:
|
190 |
+
self.messages.append(
|
191 |
+
{
|
192 |
+
"role": "user",
|
193 |
+
"content": "The Programmer says: {message}".format(
|
194 |
+
message=self.programmer.message
|
195 |
+
),
|
196 |
+
}
|
197 |
+
)
|
198 |
+
# time.sleep(1)
|
199 |
+
# self.editor_image = self.programmer["screenshot"]
|
200 |
+
# yield ("", self.editor_image, self.browser_image, self.scratchpad_image)
|
201 |
+
if self.programmer.status == "DONE":
|
202 |
+
break
|
203 |
+
self.editor_image = multion.sessions.screenshot(
|
204 |
+
session_id=self.programmer.session_id
|
205 |
+
).screenshot
|
206 |
+
print(self.editor_image)
|
207 |
+
time.sleep(1)
|
208 |
+
return
|
209 |
+
elif action_func == "researcher":
|
210 |
+
action_arg = action.split(" ", 1)[1]
|
211 |
+
while True:
|
212 |
+
self.researcher = multion.sessions.step(
|
213 |
+
self.researcher.session_id,
|
214 |
+
cmd=action_arg,
|
215 |
+
url="https://www.google.com",
|
216 |
+
include_screenshot=True,
|
217 |
+
)
|
218 |
+
print(self.researcher)
|
219 |
+
self.messages.append(
|
220 |
+
{
|
221 |
+
"role": "user",
|
222 |
+
"content": "The Researcher says: {message}".format(
|
223 |
+
message=self.researcher.message
|
224 |
+
),
|
225 |
+
}
|
226 |
+
)
|
227 |
+
# time.sleep(1)
|
228 |
+
# self.browser_image = self.researcher["screenshot"]
|
229 |
+
# yield ("", self.editor_image, self.browser_image, self.scratchpad_image)
|
230 |
+
if self.researcher.status == "DONE":
|
231 |
+
break
|
232 |
+
self.browser_image = multion.sessions.screenshot(
|
233 |
+
session_id=self.researcher.session_id
|
234 |
+
).screenshot
|
235 |
+
print(self.browser_image)
|
236 |
+
time.sleep(1)
|
237 |
+
return
|
238 |
+
elif action_func == "notetaker":
|
239 |
+
action_arg = action.split(" ", 1)[1]
|
240 |
+
while True:
|
241 |
+
self.notetaker = multion.sessions.step(
|
242 |
+
self.notetaker.session_id,
|
243 |
+
cmd=action_arg + "\n\n" + notetaker_notes,
|
244 |
+
url="https://anotepad.com/",
|
245 |
+
include_screenshot=True,
|
246 |
+
)
|
247 |
+
print(self.notetaker)
|
248 |
+
self.messages.append(
|
249 |
+
{
|
250 |
+
"role": "user",
|
251 |
+
"content": "The Notetaker says: {message}".format(
|
252 |
+
message=self.notetaker.message
|
253 |
+
),
|
254 |
+
}
|
255 |
+
)
|
256 |
+
# time.sleep(1)
|
257 |
+
# self.scratchpad_image = self.notetaker["screenshot"]
|
258 |
+
# yield ("", self.editor_image, self.browser_image, self.scratchpad_image)
|
259 |
+
if self.notetaker.status == "DONE":
|
260 |
+
break
|
261 |
+
self.scratchpad_image = multion.sessions.screenshot(
|
262 |
+
session_id=self.notetaker.session_id
|
263 |
+
).screenshot
|
264 |
+
print(self.scratchpad_image)
|
265 |
+
time.sleep(1)
|
266 |
+
return
|
267 |
+
elif action_func == "clarify":
|
268 |
+
action_arg = action.split(" ", 1)[1]
|
269 |
+
return
|
270 |
+
|
271 |
+
def orchestrator(self):
|
272 |
+
if not self.programmer_logged_in:
|
273 |
+
self.programmer_login()
|
274 |
+
self.programmer_logged_in = True
|
275 |
+
messages = self.prepare_messages()
|
276 |
+
chat_completion = self.client.chat.completions.create(
|
277 |
+
messages=messages,
|
278 |
+
model="gpt-4-vision-preview",
|
279 |
+
# max_tokens=200,
|
280 |
+
)
|
281 |
+
response = chat_completion.choices[0].message.content
|
282 |
+
action, explanation = response.split("Explanation: ", 1)
|
283 |
+
action = action.split("Action: ", 1)[1]
|
284 |
+
|
285 |
+
self.messages.append({"role": "assistant", "content": response})
|
286 |
+
self.messages.append(
|
287 |
+
{
|
288 |
+
"role": "user",
|
289 |
+
"content": "The current Plan state is: {plan}".format(plan=self.plan),
|
290 |
+
}
|
291 |
+
)
|
292 |
+
print(self.messages)
|
293 |
+
|
294 |
+
self.execute_action(action)
|
295 |
+
|
296 |
+
# temp
|
297 |
+
# self.done = True
|
298 |
+
return explanation
|
299 |
+
|
300 |
+
def run(self, prompt):
|
301 |
+
self.done = False
|
302 |
+
self.task = prompt
|
303 |
+
while not self.done:
|
304 |
+
curr_response = self.orchestrator()
|
305 |
+
yield (
|
306 |
+
curr_response,
|
307 |
+
self.editor_image,
|
308 |
+
self.browser_image,
|
309 |
+
self.scratchpad_image,
|
310 |
+
)
|
app.py
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import os
|
3 |
+
import time
|
4 |
+
from agent import DevOn
|
5 |
+
|
6 |
+
image_temp = "https://miro.medium.com/v2/resize:fit:1200/0*n-2bW82Z6m6U2bij.jpeg"
|
7 |
+
# devon = DevOn(
|
8 |
+
# editor_image=image_temp, browser_image=image_temp, scratchpad_image=image_temp
|
9 |
+
# )
|
10 |
+
devon = None
|
11 |
+
|
12 |
+
|
13 |
+
def add_message(history, message):
|
14 |
+
for x in message["files"]:
|
15 |
+
history.append(((x,), None))
|
16 |
+
if message["text"] is not None:
|
17 |
+
history.append((message["text"], None))
|
18 |
+
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
19 |
+
|
20 |
+
|
21 |
+
def bot(history):
|
22 |
+
for r in devon.run(history[-1][0]):
|
23 |
+
text, editor_image, browser_image, scratchpad_image = r
|
24 |
+
if type(text) == str:
|
25 |
+
history.append((None, text))
|
26 |
+
if editor_image is None:
|
27 |
+
editor_image = devon.editor_image
|
28 |
+
browser_image = devon.browser_image
|
29 |
+
scratchpad_image = devon.scratchpad_image
|
30 |
+
yield history, editor_image, browser_image, scratchpad_image
|
31 |
+
|
32 |
+
|
33 |
+
with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
34 |
+
with gr.Row():
|
35 |
+
with gr.Column():
|
36 |
+
chatbot = gr.Chatbot(
|
37 |
+
[], elem_id="chatbot", bubble_full_width=False, height=300
|
38 |
+
)
|
39 |
+
|
40 |
+
chat_input = gr.MultimodalTextbox(
|
41 |
+
value={"text": "write a basic hello world fastapi server"},
|
42 |
+
interactive=True,
|
43 |
+
file_types=["image"],
|
44 |
+
placeholder="Enter message or upload file...",
|
45 |
+
show_label=False,
|
46 |
+
)
|
47 |
+
with gr.Column():
|
48 |
+
if devon:
|
49 |
+
editor_view = gr.Image(
|
50 |
+
devon.editor_image,
|
51 |
+
label="Editor",
|
52 |
+
)
|
53 |
+
else:
|
54 |
+
editor_view = gr.Image()
|
55 |
+
with gr.Row():
|
56 |
+
with gr.Column():
|
57 |
+
if devon:
|
58 |
+
browser_view = gr.Image(
|
59 |
+
devon.browser_image,
|
60 |
+
label="Browser",
|
61 |
+
)
|
62 |
+
else:
|
63 |
+
browser_view = gr.Image()
|
64 |
+
with gr.Column():
|
65 |
+
if devon:
|
66 |
+
scratchpad_view = gr.Image(
|
67 |
+
devon.scratchpad_image,
|
68 |
+
label="Scratchpad",
|
69 |
+
)
|
70 |
+
else:
|
71 |
+
scratchpad_view = gr.Image()
|
72 |
+
|
73 |
+
chat_msg = chat_input.submit(
|
74 |
+
add_message, [chatbot, chat_input], [chatbot, chat_input]
|
75 |
+
)
|
76 |
+
bot_msg = chat_msg.then(
|
77 |
+
bot,
|
78 |
+
[chatbot],
|
79 |
+
[chatbot, editor_view, browser_view, scratchpad_view],
|
80 |
+
api_name="bot_response",
|
81 |
+
)
|
82 |
+
bot_msg.then(lambda: gr.MultimodalTextbox(interactive=True), None, [chat_input])
|
83 |
+
|
84 |
+
# chatbot.like(print_like_dislike, None, None)
|
85 |
+
|
86 |
+
if __name__ == "__main__":
|
87 |
+
devon = DevOn(
|
88 |
+
editor_image=image_temp, browser_image=image_temp, scratchpad_image=image_temp
|
89 |
+
)
|
90 |
+
demo.queue()
|
91 |
+
demo.launch()
|
editor.py
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import os
|
3 |
+
import time
|
4 |
+
import ngrok
|
5 |
+
from dotenv import load_dotenv
|
6 |
+
|
7 |
+
load_dotenv(".env.local")
|
8 |
+
|
9 |
+
|
10 |
+
def new_file(file_name):
|
11 |
+
# print(file_explorer)
|
12 |
+
new_file_path = os.path.join(os.getcwd(), "dev", file_name)
|
13 |
+
open(new_file_path, "w")
|
14 |
+
|
15 |
+
|
16 |
+
def set_current_file(file):
|
17 |
+
if file is None:
|
18 |
+
return ""
|
19 |
+
file_content = ""
|
20 |
+
with open(file) as f:
|
21 |
+
file_content = f.read()
|
22 |
+
return file_content
|
23 |
+
|
24 |
+
|
25 |
+
def update_file(current_file, editor_content):
|
26 |
+
with open(current_file, "w") as f:
|
27 |
+
f.write(editor_content)
|
28 |
+
return current_file, editor_content, ""
|
29 |
+
|
30 |
+
|
31 |
+
with gr.Blocks(css="footer {visibility: hidden}") as demo:
|
32 |
+
with gr.Row():
|
33 |
+
with gr.Column() as c:
|
34 |
+
file_explorer = gr.FileExplorer(file_count="single", root_dir="dev")
|
35 |
+
new_file_name = gr.Textbox(label="New File Name")
|
36 |
+
new_file_button = gr.Button(
|
37 |
+
"Create New File (After creating a new file, you must refresh the page to see the changes.)"
|
38 |
+
)
|
39 |
+
|
40 |
+
with gr.Column():
|
41 |
+
code_display = gr.Code(
|
42 |
+
"Select a file to start",
|
43 |
+
language="python",
|
44 |
+
label="Code Display (Displays file's current state, cannot edit this.)",
|
45 |
+
)
|
46 |
+
code_editor = gr.Code(
|
47 |
+
"",
|
48 |
+
language="python",
|
49 |
+
label="Code Editor (Enter the updated code to put in the file here.)",
|
50 |
+
)
|
51 |
+
update_button = gr.Button("Update File")
|
52 |
+
|
53 |
+
file_explorer.change(set_current_file, file_explorer, code_display)
|
54 |
+
update_button.click(
|
55 |
+
update_file,
|
56 |
+
[file_explorer, code_editor],
|
57 |
+
[file_explorer, code_display, code_editor],
|
58 |
+
)
|
59 |
+
new_file_button.click(new_file, new_file_name)
|
60 |
+
# with gr.Row():
|
61 |
+
# save_button = gr.Button("Save Current File")
|
62 |
+
|
63 |
+
if __name__ == "__main__":
|
64 |
+
demo.queue()
|
65 |
+
listener = ngrok.forward(9000, authtoken_from_env=True)
|
66 |
+
print(f"Ingress established at {listener.url()}")
|
67 |
+
demo.launch(server_port=9000)
|
prompts/__init__.py
ADDED
File without changes
|
prompts/notetaker.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
notetaker_notes = """Important Notes:
|
2 |
+
Don't write anything in the Note Title field.
|
3 |
+
Whatever notes you are told to make, write them in one go, don't press enter or type multiple times, because everytime you write, it will replace the prevoius content.
|
4 |
+
You do not need to Save the note. When asked to note something down, just write it on the notepad. That is enough."""
|
prompts/orchestrator.py
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
orchestrator_prompt = """**General**
|
2 |
+
|
3 |
+
- You are DevOn, an expert Software Developer.
|
4 |
+
- You will be asked to develop a new software project from scratch. You will primarily work in Python. You will deal with large software projects spanning multiple files and user requirements.
|
5 |
+
- Your lifecycle will essentially circle around the Task, the State, your Plan, your Actions, and your Interns. Each of these are described in detail below.
|
6 |
+
- To start with, your Plan will be empty. You will receive a State (in the form of 3 images, one from each of your Interns) and a Task. You will construct a Plan outlining the steps you will need to take to complete the Task, then ask your Interns to do things in order to incrementally fulfil the steps and complete the Task.
|
7 |
+
- With each step, you will also provide an Explanation, explaining to the user what you are currently doing, so they may be able to keep track and monitor your progress. For example:
|
8 |
+
- Explanation: I am currently updating the plan based on the current state and the Task.
|
9 |
+
- Explanation: I am currently creating a file called utils.py which will contain utility functions.
|
10 |
+
|
11 |
+
**State**
|
12 |
+
|
13 |
+
**Interns**
|
14 |
+
|
15 |
+
- You have 3 interns who will help you with different tasks - a Programmer, a Researcher, and a Planner. Here’s some info about them:
|
16 |
+
- Programmer: the Programmer is great at writing code given very specific instructions but isn’t a good long term planner. The Programmer works on Replit. You can ask the Programmer to write some code in certain files, make new files, etc. You can even give loose instructions like “Make a new file and write basic skeleton for an Agent class in it.” Keep in mind that the Programmer works exclusively in an online Replit IDE environment. Make sure your Plan and your Actions take this into consideration.
|
17 |
+
- Researcher: the Researcher is very handy with a browser and great at finding out technical details, documentation, examples, miscellaneous information, etc. You can ask it to do things like “Find out how to make an LLM call using the Perplexity API”.
|
18 |
+
- Notetaker: the Notetaker has a notepad and can note down anything you want. You will be able to see the notepad at all times. Anytime you want anything written down just to keep track of it, ask the Planner to do so.
|
19 |
+
|
20 |
+
**Plan**
|
21 |
+
|
22 |
+
- You have a persistent object to keep track of things: a Plan.
|
23 |
+
- If the plan is empty, you will create a plan using the current state of things and the given task. You will do so using the update_plan action described below.
|
24 |
+
|
25 |
+
**Actions**
|
26 |
+
|
27 |
+
- There are 6 actions that you can take at the current time step. You must always take a valid action. You will complete the task by taking actions. You are free to take as many actions as needed (even hundreds), don’t try to rush by compressing multiple actions into one. These are the available actions:
|
28 |
+
- update_plan <plan>: Update Plan’s value to <plan>. This will replace the old value, not append to it. If there’s something from the old plan you wish to include in the updated one, make sure to include it in the <plan> you provide as an argument. Some examples how you can use this:
|
29 |
+
- update_plan In order to carry out the task of creating a Flask web server, I will need to take the following steps:
|
30 |
+
1) …
|
31 |
+
2) …
|
32 |
+
3) …
|
33 |
+
- programmer <task>: Ask the Programmer to carry out a <task>. Some examples of how you can use this:
|
34 |
+
- programmer Create a new Python file for utils called utils.py and write a generate_random_number() function in it that takes no parameters and returns a random number.
|
35 |
+
- programmer Go to the model.py file and import generate_random_number() from utils.
|
36 |
+
- researcher <task>: Ask the Researcher to carry out a <task>. The Researcher will reply to you with the information you asked for. Some examples of how you can use this:
|
37 |
+
- researcher Find out how the OpenAI API is used.
|
38 |
+
- researcher What is a SERP API I could use?
|
39 |
+
- notetaker <note>: Ask the Notetaker to carry out a <task>. Some examples of how you can use this:
|
40 |
+
- notetaker Note down the following information: MULTION_API_KEY=…
|
41 |
+
- notetaker Note down the following information: An example Chat Completions API call looks like the following:
|
42 |
+
from openai import OpenAI
|
43 |
+
client = OpenAI()
|
44 |
+
|
45 |
+
response = client.chat.completions.create(
|
46 |
+
model="gpt-3.5-turbo",
|
47 |
+
messages=[
|
48 |
+
{"role": "system", "content": "You are a helpful assistant."},
|
49 |
+
{"role": "user", "content": "Who won the world series in 2020?"},
|
50 |
+
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
|
51 |
+
{"role": "user", "content": "Where was it played?"}
|
52 |
+
]
|
53 |
+
)
|
54 |
+
- clarify <question>: Clarify something about the Task. Sometimes, there may be missing information, such as logins, api keys, or some requirements of the Task may be unclear. Use this Action to clarify things from the user by asking <question>. Use this sparingly. Try and make decisions yourself. Some examples of how you can use this:
|
55 |
+
- clarify The Task mentions that I need to benchmark the Perplexity API. Could you provide your API Key?
|
56 |
+
- submit: The Task is completed and you are ready to submit the output (whatever the programmer has so far). This is end the execution. Only do this when you are completely sure.
|
57 |
+
|
58 |
+
**Important Notes**
|
59 |
+
|
60 |
+
- Respond only by taking an Action (and providing the accompanying Explanation). Any response from you must be one of the above Actions. No other text in the response, just the Action and the Explanation. You will structure your output as such:
|
61 |
+
”Action: <action>\nExplanation: <explanation>”
|
62 |
+
- You do not need to ask the Programmer to log in.
|
63 |
+
- You can see all the Interns screens. If it seems like an Intern has made a mistake or encountered an error, you can tell them about it using the relevant action and ask them to correct it. This is especially important with the Programmer.
|
64 |
+
- When you ask the programmer to write some code, ask it like this: "programmer memorize the following code and write it in the editor: <code>"
|
65 |
+
- When you ask the programmer to write some code, make sure the code does not include any double quotation marks, only single quotation marks. E.g. "hello world" should instead be 'hello world'.
|
66 |
+
- Do not ask the programmer to create new files.
|
67 |
+
- When writing code, it is preferable to keep it small and simple. Don't write too much fluff.
|
68 |
+
- Remember to only use single quotation marks.
|
69 |
+
"""
|
prompts/programmer.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# programmer_notes = """Important Notes:
|
2 |
+
# Do not refresh the page ever to check for anything. Only wait. Do not refresh.
|
3 |
+
# You are working in a terminal environment.
|
4 |
+
# You will do everything using the terminal and only the terminal.
|
5 |
+
# If you need to create a new file, do so using the touch command on the terminal.
|
6 |
+
# If you need to see files in the current directory, do so using ls.
|
7 |
+
# If you need to view a files content, do so using the cat command on the terminal.
|
8 |
+
# To enter code into a file, use a single printf command. After the printf command has been completely typed, press enter. Typing the command and pressing enter must be 2 separate steps.
|
9 |
+
# Do not open a text editor like vim or nano.
|
10 |
+
# If you need to install a new package, use pip install on the terminal.
|
11 |
+
# Do not use the same command repeatedly.
|
12 |
+
# When you write code into a file, write it once, cat it once, then stop. Do no attempt to write again unless it is wrong.
|
13 |
+
# Remember that you need to press Enter after typing a command into the terminal. Only press enter after the command has been completely typed. Typing the command pressing enter must be 2 separate steps."""
|
14 |
+
|
15 |
+
programmer_notes = """Important Notes:
|
16 |
+
You are a Programmer who works in a Replit Environment exclusively. If you need to install a package, use the Shell and not the Console.
|
17 |
+
Do not refresh the page ever to check for anything. Only wait. Do not refresh. Do not create new files. Write your code in currently open editor window itself. Do not type double quotation marks. If you are asked to type code containing them, use single quotes instead."""
|
requirements.txt
ADDED
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiodns==3.1.1
|
2 |
+
aiofiles==23.2.1
|
3 |
+
aiohttp==3.9.3
|
4 |
+
aiohttp-retry==2.8.3
|
5 |
+
aioprocessing==2.0.1
|
6 |
+
aiosignal==1.3.1
|
7 |
+
altair==5.3.0
|
8 |
+
annotated-types==0.6.0
|
9 |
+
anthropic==0.23.1
|
10 |
+
anyio==3.7.1
|
11 |
+
appnope==0.1.3
|
12 |
+
asgiref==3.7.2
|
13 |
+
asttokens==2.4.1
|
14 |
+
astunparse==1.6.3
|
15 |
+
attrs==23.2.0
|
16 |
+
backcall==0.2.0
|
17 |
+
backoff==2.2.1
|
18 |
+
bcrypt==4.1.2
|
19 |
+
beautifulsoup4==4.12.2
|
20 |
+
boto3==1.34.69
|
21 |
+
botocore==1.34.69
|
22 |
+
brave-search==0.1.8
|
23 |
+
Brotli==1.1.0
|
24 |
+
build==1.0.3
|
25 |
+
CacheControl==0.13.1
|
26 |
+
cachetools==5.3.2
|
27 |
+
certifi==2023.11.17
|
28 |
+
cffi==1.16.0
|
29 |
+
charset-normalizer==3.3.2
|
30 |
+
chroma-hnswlib==0.7.3
|
31 |
+
chromadb==0.4.22
|
32 |
+
clean-text==0.6.0
|
33 |
+
click==8.1.7
|
34 |
+
cloudpickle==3.0.0
|
35 |
+
cognitojwt==1.4.1
|
36 |
+
colorama==0.4.6
|
37 |
+
coloredlogs==15.0.1
|
38 |
+
comm==0.2.1
|
39 |
+
contourpy==1.2.0
|
40 |
+
cryptography==41.0.7
|
41 |
+
cssselect2==0.7.0
|
42 |
+
cycler==0.12.1
|
43 |
+
dataclasses-json==0.6.3
|
44 |
+
datasets==2.18.0
|
45 |
+
debugpy==1.8.0
|
46 |
+
decorator==5.1.1
|
47 |
+
Deprecated==1.2.14
|
48 |
+
dill==0.3.8
|
49 |
+
diskcache==5.6.3
|
50 |
+
distro==1.9.0
|
51 |
+
dnspython==2.6.1
|
52 |
+
docopt==0.6.2
|
53 |
+
docstring-parser==0.15
|
54 |
+
ecdsa==0.18.0
|
55 |
+
email_validator==2.1.1
|
56 |
+
emoji==1.7.0
|
57 |
+
exa-py==1.0.8
|
58 |
+
executing==2.0.1
|
59 |
+
faiss-cpu==1.7.4
|
60 |
+
fastapi==0.109.0
|
61 |
+
ffmpy==0.3.2
|
62 |
+
filelock==3.13.1
|
63 |
+
flatbuffers==23.5.26
|
64 |
+
fonttools==4.49.0
|
65 |
+
frozenlist==1.4.1
|
66 |
+
fsspec==2023.12.2
|
67 |
+
ftfy==6.1.3
|
68 |
+
google-api-core==2.15.0
|
69 |
+
google-api-python-client==2.113.0
|
70 |
+
google-auth==2.26.1
|
71 |
+
google-auth-httplib2==0.2.0
|
72 |
+
google-cloud-core==2.4.1
|
73 |
+
google-cloud-firestore==2.14.0
|
74 |
+
google-cloud-storage==2.14.0
|
75 |
+
google-crc32c==1.5.0
|
76 |
+
google-resumable-media==2.7.0
|
77 |
+
googleapis-common-protos==1.62.0
|
78 |
+
googlesearch-python==1.2.3
|
79 |
+
gptcache==0.1.43
|
80 |
+
gradio==4.24.0
|
81 |
+
gradio_client==0.14.0
|
82 |
+
greenlet==3.0.1
|
83 |
+
groq==0.4.1
|
84 |
+
grpcio==1.60.0
|
85 |
+
grpcio-status==1.60.0
|
86 |
+
h11==0.14.0
|
87 |
+
html-sanitizer==2.3.1
|
88 |
+
html2text==2024.2.26
|
89 |
+
html5lib==1.1
|
90 |
+
httpcore==1.0.2
|
91 |
+
httplib2==0.22.0
|
92 |
+
httptools==0.6.1
|
93 |
+
httpx==0.25.2
|
94 |
+
huggingface-hub==0.20.1
|
95 |
+
humanfriendly==10.0
|
96 |
+
idna==3.6
|
97 |
+
importlib-metadata==6.11.0
|
98 |
+
importlib-resources==6.1.1
|
99 |
+
iniconfig==2.0.0
|
100 |
+
inquirerpy==0.3.4
|
101 |
+
inscriptis==2.5.0
|
102 |
+
instructor==0.5.2
|
103 |
+
interegular==0.3.3
|
104 |
+
ipykernel==6.28.0
|
105 |
+
ipython==7.34.0
|
106 |
+
itsdangerous==2.1.2
|
107 |
+
jedi==0.19.1
|
108 |
+
Jinja2==3.1.2
|
109 |
+
jmespath==1.0.1
|
110 |
+
joblib==1.3.2
|
111 |
+
jsonpatch==1.33
|
112 |
+
jsonpointer==2.4
|
113 |
+
jsonschema==4.21.1
|
114 |
+
jsonschema-specifications==2023.12.1
|
115 |
+
jupyter_client==8.6.0
|
116 |
+
jupyter_core==5.7.1
|
117 |
+
kiwisolver==1.4.5
|
118 |
+
kubernetes==28.1.0
|
119 |
+
langchain==0.0.353
|
120 |
+
langchain-community==0.0.7
|
121 |
+
langchain-core==0.1.4
|
122 |
+
langsmith==0.0.75
|
123 |
+
lark==1.1.9
|
124 |
+
llvmlite==0.42.0
|
125 |
+
lxml==5.0.0
|
126 |
+
markdown-it-py==3.0.0
|
127 |
+
markdown2==2.4.13
|
128 |
+
MarkupSafe==2.1.3
|
129 |
+
marshmallow==3.20.1
|
130 |
+
matplotlib==3.8.3
|
131 |
+
matplotlib-inline==0.1.6
|
132 |
+
mdurl==0.1.2
|
133 |
+
mmh3==4.0.1
|
134 |
+
monotonic==1.6
|
135 |
+
mpmath==1.3.0
|
136 |
+
msal==1.27.0
|
137 |
+
msgpack==1.0.7
|
138 |
+
multidict==6.0.4
|
139 |
+
multion==1.0.1
|
140 |
+
multiprocess==0.70.16
|
141 |
+
mypy-extensions==1.0.0
|
142 |
+
nest-asyncio==1.5.8
|
143 |
+
networkx==3.2.1
|
144 |
+
ngrok==1.2.0
|
145 |
+
nltk==3.8.1
|
146 |
+
numba==0.59.0
|
147 |
+
numpy==1.26.2
|
148 |
+
oauthlib==3.2.2
|
149 |
+
onnxruntime==1.16.3
|
150 |
+
openai==1.12.0
|
151 |
+
opentelemetry-api==1.22.0
|
152 |
+
opentelemetry-exporter-otlp-proto-common==1.22.0
|
153 |
+
opentelemetry-exporter-otlp-proto-grpc==1.22.0
|
154 |
+
opentelemetry-instrumentation==0.43b0
|
155 |
+
opentelemetry-instrumentation-asgi==0.43b0
|
156 |
+
opentelemetry-instrumentation-fastapi==0.43b0
|
157 |
+
opentelemetry-proto==1.22.0
|
158 |
+
opentelemetry-sdk==1.22.0
|
159 |
+
opentelemetry-semantic-conventions==0.43b0
|
160 |
+
opentelemetry-util-http==0.43b0
|
161 |
+
ordered-set==4.1.0
|
162 |
+
orjson==3.9.15
|
163 |
+
overrides==7.4.0
|
164 |
+
packaging==23.2
|
165 |
+
pandas==2.2.1
|
166 |
+
paramiko==3.4.0
|
167 |
+
parso==0.8.3
|
168 |
+
pdfkit==1.0.0
|
169 |
+
pexpect==4.9.0
|
170 |
+
pfzy==0.3.4
|
171 |
+
pickleshare==0.7.5
|
172 |
+
pillow==10.2.0
|
173 |
+
pinecone-client==3.0.0
|
174 |
+
platformdirs==4.1.0
|
175 |
+
playwright==1.40.0
|
176 |
+
pluggy==1.4.0
|
177 |
+
posthog==3.1.0
|
178 |
+
prettytable==3.10.0
|
179 |
+
prompt-toolkit==3.0.43
|
180 |
+
proto-plus==1.23.0
|
181 |
+
protobuf==4.25.1
|
182 |
+
psutil==5.9.7
|
183 |
+
ptyprocess==0.7.0
|
184 |
+
pulsar-client==3.4.0
|
185 |
+
pure-eval==0.2.2
|
186 |
+
py-cpuinfo==9.0.0
|
187 |
+
pyarrow==15.0.2
|
188 |
+
pyarrow-hotfix==0.6
|
189 |
+
pyasn1==0.5.1
|
190 |
+
pyasn1-modules==0.3.0
|
191 |
+
pycares==4.4.0
|
192 |
+
pycparser==2.21
|
193 |
+
pydantic==2.5.3
|
194 |
+
pydantic-extra-types==2.6.0
|
195 |
+
pydantic-settings==2.2.1
|
196 |
+
pydantic_core==2.14.6
|
197 |
+
pydot==2.0.0
|
198 |
+
pydub==0.25.1
|
199 |
+
pydyf==0.9.0
|
200 |
+
pyee==11.0.1
|
201 |
+
pyformlang==1.0.7
|
202 |
+
Pygments==2.17.2
|
203 |
+
PyJWT==2.8.0
|
204 |
+
pymongo==4.6.2
|
205 |
+
PyNaCl==1.5.0
|
206 |
+
pyparsing==3.1.1
|
207 |
+
pypdf==4.0.0
|
208 |
+
pyphen==0.14.0
|
209 |
+
PyPika==0.48.9
|
210 |
+
pyproject_hooks==1.0.0
|
211 |
+
pytesseract==0.3.10
|
212 |
+
pytest==8.1.1
|
213 |
+
pytest-asyncio==0.23.6
|
214 |
+
python-dateutil==2.8.2
|
215 |
+
python-dotenv==1.0.0
|
216 |
+
python-jose==3.3.0
|
217 |
+
python-multipart==0.0.9
|
218 |
+
pytz==2024.1
|
219 |
+
PyYAML==6.0.1
|
220 |
+
pyzmq==25.1.2
|
221 |
+
readabilipy==0.2.0
|
222 |
+
referencing==0.33.0
|
223 |
+
regex==2023.12.25
|
224 |
+
requests==2.31.0
|
225 |
+
requests-oauthlib==1.3.1
|
226 |
+
rich==13.7.0
|
227 |
+
rpds-py==0.18.0
|
228 |
+
rsa==4.9
|
229 |
+
ruff==0.3.4
|
230 |
+
runpod==1.6.2
|
231 |
+
s3transfer==0.10.1
|
232 |
+
safetensors==0.4.1
|
233 |
+
scikit-learn==1.3.2
|
234 |
+
scipy==1.11.4
|
235 |
+
semantic-version==2.10.0
|
236 |
+
sentence-transformers==2.2.2
|
237 |
+
sentencepiece==0.1.99
|
238 |
+
sentry-sdk==1.40.6
|
239 |
+
shellingham==1.5.4
|
240 |
+
six==1.16.0
|
241 |
+
sniffio==1.3.0
|
242 |
+
soupsieve==2.5
|
243 |
+
SQLAlchemy==2.0.24
|
244 |
+
stack-data==0.6.3
|
245 |
+
starlette==0.35.1
|
246 |
+
sympy==1.12
|
247 |
+
tenacity==8.2.3
|
248 |
+
termcolor==2.4.0
|
249 |
+
text-generation==0.6.1
|
250 |
+
threadpoolctl==3.2.0
|
251 |
+
tiktoken==0.5.2
|
252 |
+
tinycss2==1.2.1
|
253 |
+
tokenizers==0.15.0
|
254 |
+
tomli==2.0.1
|
255 |
+
tomlkit==0.12.0
|
256 |
+
toolz==0.12.1
|
257 |
+
torch==2.1.2
|
258 |
+
torchvision==0.16.2
|
259 |
+
tornado==6.4
|
260 |
+
tqdm==4.66.1
|
261 |
+
tqdm-loggable==0.2
|
262 |
+
traitlets==5.14.1
|
263 |
+
transformers==4.36.2
|
264 |
+
typer==0.9.0
|
265 |
+
typing-inspect==0.9.0
|
266 |
+
typing_extensions==4.9.0
|
267 |
+
tzdata==2024.1
|
268 |
+
ujson==5.9.0
|
269 |
+
uritemplate==4.1.1
|
270 |
+
urllib3==1.26.18
|
271 |
+
uvicorn==0.25.0
|
272 |
+
uvloop==0.19.0
|
273 |
+
watchdog==4.0.0
|
274 |
+
watchfiles==0.21.0
|
275 |
+
wcwidth==0.2.12
|
276 |
+
weasyprint==61.1
|
277 |
+
webencodings==0.5.1
|
278 |
+
websocket-client==1.7.0
|
279 |
+
websockets==11.0.3
|
280 |
+
wrapt==1.16.0
|
281 |
+
xxhash==3.4.1
|
282 |
+
yarl==1.9.4
|
283 |
+
zipp==3.17.0
|
284 |
+
zopfli==0.2.3
|
start_local.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
env WHERE_EXECUTE="local" gradio app.py
|
start_remote.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
env WHERE_EXECUTE="remote" gradio app.py
|