Spaces:
Sleeping
Sleeping
Charan Sai Mamidala commited on
Commit ·
a439670
1
Parent(s): 3177659
Fix validate checks: entry point, dependencies, layout
Browse files- .gitignore +0 -1
- main.py +5 -1
- pyproject.toml +4 -0
- uv.lock +0 -0
.gitignore
CHANGED
|
@@ -34,7 +34,6 @@ Thumbs.db
|
|
| 34 |
.DS_Store
|
| 35 |
|
| 36 |
# UV
|
| 37 |
-
uv.lock
|
| 38 |
|
| 39 |
# Inference results (regenerated)
|
| 40 |
inference_results.json
|
|
|
|
| 34 |
.DS_Store
|
| 35 |
|
| 36 |
# UV
|
|
|
|
| 37 |
|
| 38 |
# Inference results (regenerated)
|
| 39 |
inference_results.json
|
main.py
CHANGED
|
@@ -274,5 +274,9 @@ async def state():
|
|
| 274 |
return env.state()
|
| 275 |
|
| 276 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 277 |
if __name__ == "__main__":
|
| 278 |
-
|
|
|
|
| 274 |
return env.state()
|
| 275 |
|
| 276 |
|
| 277 |
+
def start():
|
| 278 |
+
uvicorn.run("main:app", host="0.0.0.0", port=7860)
|
| 279 |
+
|
| 280 |
+
|
| 281 |
if __name__ == "__main__":
|
| 282 |
+
start()
|
pyproject.toml
CHANGED
|
@@ -10,10 +10,14 @@ dependencies = [
|
|
| 10 |
"requests",
|
| 11 |
"openai",
|
| 12 |
"python-dotenv",
|
|
|
|
| 13 |
]
|
| 14 |
|
| 15 |
[project.optional-dependencies]
|
| 16 |
dev = []
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
[tool.uv]
|
| 19 |
dev-dependencies = []
|
|
|
|
| 10 |
"requests",
|
| 11 |
"openai",
|
| 12 |
"python-dotenv",
|
| 13 |
+
"openenv-core>=0.2.0",
|
| 14 |
]
|
| 15 |
|
| 16 |
[project.optional-dependencies]
|
| 17 |
dev = []
|
| 18 |
|
| 19 |
+
[project.scripts]
|
| 20 |
+
server = "main:start"
|
| 21 |
+
|
| 22 |
[tool.uv]
|
| 23 |
dev-dependencies = []
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|