Paramveer singh commited on
Commit
fcbfb18
·
1 Parent(s): 43005a9

Fix: Reorganized to standard OpenEnv structure with server/app.py and uv.lock

Browse files
Files changed (5) hide show
  1. Dockerfile +1 -1
  2. pyproject.toml +6 -1
  3. requirements.txt +0 -1
  4. main.py → server/app.py +0 -0
  5. uv.lock +0 -0
Dockerfile CHANGED
@@ -15,4 +15,4 @@ COPY . .
15
  EXPOSE 7860
16
 
17
  # Start the FastAPI server using Uvicorn
18
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
15
  EXPOSE 7860
16
 
17
  # Start the FastAPI server using Uvicorn
18
+ CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]
pyproject.toml CHANGED
@@ -16,5 +16,10 @@ dependencies = [
16
  "openenv-core"
17
  ]
18
 
 
 
 
 
19
  [tool.setuptools]
20
- py-modules = ["env", "models", "main"]
 
 
16
  "openenv-core"
17
  ]
18
 
19
+ # This is what the validator was missing:
20
+ [project.scripts]
21
+ server = "server.app:app"
22
+
23
  [tool.setuptools]
24
+ py-modules = ["env", "models"]
25
+ packages = ["server"]
requirements.txt CHANGED
@@ -3,4 +3,3 @@ uvicorn==0.27.1
3
  pydantic==2.6.3
4
  openai==1.13.3
5
  openenv-core
6
- bash validate-submission.sh https://huggingface.co/spaces/Scikitlearn10801/DataPrivacyEnv/tree/main.
 
3
  pydantic==2.6.3
4
  openai==1.13.3
5
  openenv-core
 
main.py → server/app.py RENAMED
File without changes
uv.lock ADDED
The diff for this file is too large to render. See raw diff