Spaces:
Sleeping
Sleeping
Fix openenv validate: add pyproject.toml, uv.lock, server/app.py entrypoint
Browse files- Dockerfile +1 -1
- pyproject.toml +27 -0
- server/app.py +8 -0
- uv.lock +0 -0
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
pyproject.toml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["setuptools>=45", "wheel"]
|
| 3 |
+
build-backend = "setuptools.build_meta"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "indicators-env"
|
| 7 |
+
version = "1.0.0"
|
| 8 |
+
description = "OpenEnv RL environment for NSE stock market technical indicators prediction."
|
| 9 |
+
requires-python = ">=3.12"
|
| 10 |
+
authors = [
|
| 11 |
+
{name = "bawsi99"}
|
| 12 |
+
]
|
| 13 |
+
dependencies = [
|
| 14 |
+
"openenv-core>=0.2.0",
|
| 15 |
+
"fastapi",
|
| 16 |
+
"uvicorn",
|
| 17 |
+
"pydantic",
|
| 18 |
+
"requests",
|
| 19 |
+
"openai"
|
| 20 |
+
]
|
| 21 |
+
|
| 22 |
+
[project.scripts]
|
| 23 |
+
server = "server.app:main"
|
| 24 |
+
|
| 25 |
+
[tool.setuptools]
|
| 26 |
+
include-package-data = true
|
| 27 |
+
packages = ["env", "server"]
|
server/app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from env.indicators_env import app
|
| 2 |
+
|
| 3 |
+
def main():
|
| 4 |
+
import uvicorn
|
| 5 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 6 |
+
|
| 7 |
+
if __name__ == "__main__":
|
| 8 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|