Spaces:
Sleeping
Sleeping
Commit ·
7b19898
1
Parent(s): a772363
Add pyproject.toml , server/app.py .. - openenv validate passed
Browse files- pyproject.toml +25 -0
- server/__init__.py +0 -0
- server/app.py +16 -0
- uv.lock +0 -0
pyproject.toml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "sql-analyst-env"
|
| 3 |
+
version = "2.0.0"
|
| 4 |
+
description = "A real-world OpenEnv environment where an AI agent writes SQL queries against an e-commerce database"
|
| 5 |
+
requires-python = ">=3.10"
|
| 6 |
+
dependencies = [
|
| 7 |
+
"fastapi==0.115.0",
|
| 8 |
+
"uvicorn==0.30.6",
|
| 9 |
+
"pydantic==2.9.2",
|
| 10 |
+
"requests==2.32.3",
|
| 11 |
+
"openai==1.51.0",
|
| 12 |
+
"pyyaml==6.0.2",
|
| 13 |
+
"python-dotenv",
|
| 14 |
+
"openenv-core>=0.2.0",
|
| 15 |
+
]
|
| 16 |
+
|
| 17 |
+
[project.urls]
|
| 18 |
+
Homepage = "https://huggingface.co/spaces/P-Karthik-Mohan/sql-analyst-env"
|
| 19 |
+
|
| 20 |
+
[project.scripts]
|
| 21 |
+
server = "server.app:main"
|
| 22 |
+
|
| 23 |
+
[build-system]
|
| 24 |
+
requires = ["setuptools>=68"]
|
| 25 |
+
build-backend = "setuptools.backends.legacy:build"
|
server/__init__.py
ADDED
|
File without changes
|
server/app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
server/app.py — Entry point for OpenEnv server discovery
|
| 3 |
+
This imports and exposes the main FastAPI app from main.py
|
| 4 |
+
"""
|
| 5 |
+
import sys
|
| 6 |
+
import os
|
| 7 |
+
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
| 8 |
+
|
| 9 |
+
from main import app
|
| 10 |
+
import uvicorn
|
| 11 |
+
|
| 12 |
+
def main():
|
| 13 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 14 |
+
|
| 15 |
+
if __name__ == "__main__":
|
| 16 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|