Developer-Amar commited on
Commit
1a9079c
·
1 Parent(s): b3210a7

Fix project layout to pass OpenEnv validation

Browse files
Files changed (3) hide show
  1. pyproject.toml +20 -0
  2. server/app.py +12 -0
  3. uv.lock +0 -0
pyproject.toml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "socratic-env"
7
+ version = "1.0.0"
8
+ description = "Socratic AI tutor env for OpenEnv hackathon submission"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ dependencies = [
12
+ "openenv-core",
13
+ "pydantic",
14
+ "openai",
15
+ "fastapi",
16
+ "uvicorn"
17
+ ]
18
+
19
+ [project.scripts]
20
+ server = "server.app:main"
server/app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ import uvicorn
4
+
5
+ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
6
+ from main import app
7
+
8
+ def main():
9
+ uvicorn.run(app, host="0.0.0.0", port=7860)
10
+
11
+ if __name__ == "__main__":
12
+ main()
uv.lock ADDED
The diff for this file is too large to render. See raw diff