Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- pyproject.toml +4 -2
- server/app.py +8 -1
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -9,7 +9,6 @@ description = "NL2SQL-Bench: Natural Language to SQL Analytics OpenEnv envir
|
|
| 9 |
readme = "README.md"
|
| 10 |
requires-python = ">=3.10"
|
| 11 |
license = { text = "MIT" }
|
| 12 |
-
|
| 13 |
dependencies = [
|
| 14 |
"openenv-core>=0.2.3",
|
| 15 |
"fastapi>=0.110.0",
|
|
@@ -18,6 +17,9 @@ dependencies = [
|
|
| 18 |
"openai>=1.0.0",
|
| 19 |
]
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
[project.optional-dependencies]
|
| 22 |
dev = [
|
| 23 |
"pytest>=7.0",
|
|
@@ -36,4 +38,4 @@ line-length = 100
|
|
| 36 |
target-version = "py310"
|
| 37 |
|
| 38 |
[tool.pytest.ini_options]
|
| 39 |
-
asyncio_mode = "auto"
|
|
|
|
| 9 |
readme = "README.md"
|
| 10 |
requires-python = ">=3.10"
|
| 11 |
license = { text = "MIT" }
|
|
|
|
| 12 |
dependencies = [
|
| 13 |
"openenv-core>=0.2.3",
|
| 14 |
"fastapi>=0.110.0",
|
|
|
|
| 17 |
"openai>=1.0.0",
|
| 18 |
]
|
| 19 |
|
| 20 |
+
[project.scripts]
|
| 21 |
+
server = "server.app:main"
|
| 22 |
+
|
| 23 |
[project.optional-dependencies]
|
| 24 |
dev = [
|
| 25 |
"pytest>=7.0",
|
|
|
|
| 38 |
target-version = "py310"
|
| 39 |
|
| 40 |
[tool.pytest.ini_options]
|
| 41 |
+
asyncio_mode = "auto"
|
server/app.py
CHANGED
|
@@ -28,4 +28,11 @@ app = create_fastapi_app(
|
|
| 28 |
NL2SQLEnvironment,
|
| 29 |
action_cls=NL2SQLAction,
|
| 30 |
observation_cls=NL2SQLObservation
|
| 31 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
NL2SQLEnvironment,
|
| 29 |
action_cls=NL2SQLAction,
|
| 30 |
observation_cls=NL2SQLObservation
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
def main():
|
| 34 |
+
import uvicorn
|
| 35 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 36 |
+
|
| 37 |
+
if __name__ == '__main__':
|
| 38 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|