Spaces:
Sleeping
Sleeping
Commit ·
e15d96a
1
Parent(s): 5b248a0
fix pyproject.toml and generate uv.lock
Browse files- pyproject.toml +20 -0
- server/app.py +8 -1
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["setuptools>=61.0"]
|
| 3 |
+
build-backend = "setuptools.backends.legacy:build"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "bug-triage-env"
|
| 7 |
+
version = "1.0.0"
|
| 8 |
+
description = "OpenEnv RL environment for bug report triage"
|
| 9 |
+
requires-python = ">=3.11"
|
| 10 |
+
dependencies = [
|
| 11 |
+
"openenv-core>=0.2.0",
|
| 12 |
+
"fastapi",
|
| 13 |
+
"uvicorn[standard]",
|
| 14 |
+
"pydantic",
|
| 15 |
+
"websockets",
|
| 16 |
+
"groq",
|
| 17 |
+
]
|
| 18 |
+
|
| 19 |
+
[project.scripts]
|
| 20 |
+
server = "server.app:main"
|
server/app.py
CHANGED
|
@@ -13,4 +13,11 @@ app = create_app(
|
|
| 13 |
TriageAction,
|
| 14 |
TriageObservation,
|
| 15 |
env_name="bug-triage-env",
|
| 16 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
TriageAction,
|
| 14 |
TriageObservation,
|
| 15 |
env_name="bug-triage-env",
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
def main():
|
| 19 |
+
import uvicorn
|
| 20 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 21 |
+
|
| 22 |
+
if __name__ == "__main__":
|
| 23 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|