Spaces:
Sleeping
Sleeping
Dev Paragiri
commited on
Commit
·
7a36c97
1
Parent(s):
f3bcbd5
Wallet v1
Browse files- .gitignore +17 -0
- Dockerfile +14 -0
- main.py +7 -0
- requirements.txt +13 -0
.gitignore
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Python
|
2 |
+
*.pyc
|
3 |
+
__pycache__/
|
4 |
+
venv/
|
5 |
+
*.env
|
6 |
+
|
7 |
+
# IDEs and Editors
|
8 |
+
.vscode/
|
9 |
+
.idea/
|
10 |
+
*.sublime-project
|
11 |
+
*.sublime-workspace
|
12 |
+
|
13 |
+
# Dependency directories
|
14 |
+
env/
|
15 |
+
lib/
|
16 |
+
bin/
|
17 |
+
include/
|
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
+
# you will also find guides on how best to write your Dockerfile
|
3 |
+
|
4 |
+
FROM python:3.9
|
5 |
+
|
6 |
+
WORKDIR /code
|
7 |
+
|
8 |
+
COPY ./requirements.txt /code/requirements.txt
|
9 |
+
|
10 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
+
|
12 |
+
COPY . .
|
13 |
+
|
14 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
main.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
|
3 |
+
app = FastAPI()
|
4 |
+
|
5 |
+
@app.get("/")
|
6 |
+
def read_root():
|
7 |
+
return {"Hello": "World"}
|
requirements.txt
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
annotated-types==0.6.0
|
2 |
+
anyio==4.2.0
|
3 |
+
click==8.1.7
|
4 |
+
exceptiongroup==1.2.0
|
5 |
+
fastapi==0.109.0
|
6 |
+
h11==0.14.0
|
7 |
+
idna==3.6
|
8 |
+
pydantic==2.5.3
|
9 |
+
pydantic_core==2.14.6
|
10 |
+
sniffio==1.3.0
|
11 |
+
starlette==0.35.1
|
12 |
+
typing_extensions==4.9.0
|
13 |
+
uvicorn==0.27.0
|