Spaces:
Configuration error
Configuration error
Paramveer singh commited on
Commit ·
081d1ba
1
Parent(s): d045505
Final attempt: Flattened structure to root level for validator compliance
Browse files- Dockerfile +1 -1
- server/app.py → main.py +0 -0
- openenv.yaml +1 -1
- pyproject.toml +2 -3
- server/__init__.py +0 -0
Dockerfile
CHANGED
|
@@ -15,4 +15,4 @@ COPY . .
|
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
# Start the FastAPI server using Uvicorn
|
| 18 |
-
CMD ["uvicorn", "
|
|
|
|
| 15 |
EXPOSE 7860
|
| 16 |
|
| 17 |
# Start the FastAPI server using Uvicorn
|
| 18 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
server/app.py → main.py
RENAMED
|
File without changes
|
openenv.yaml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
name: data-privacy-env
|
| 2 |
version: 1.0.0
|
| 3 |
type: environment
|
| 4 |
-
entry_point:
|
|
|
|
| 1 |
name: data-privacy-env
|
| 2 |
version: 1.0.0
|
| 3 |
type: environment
|
| 4 |
+
entry_point: main:app
|
pyproject.toml
CHANGED
|
@@ -17,8 +17,7 @@ dependencies = [
|
|
| 17 |
]
|
| 18 |
|
| 19 |
[project.scripts]
|
| 20 |
-
server = "
|
| 21 |
|
| 22 |
[tool.setuptools]
|
| 23 |
-
|
| 24 |
-
py-modules = ["env", "models"]
|
|
|
|
| 17 |
]
|
| 18 |
|
| 19 |
[project.scripts]
|
| 20 |
+
server = "main:main"
|
| 21 |
|
| 22 |
[tool.setuptools]
|
| 23 |
+
py-modules = ["env", "models", "main"]
|
|
|
server/__init__.py
DELETED
|
File without changes
|