Giselle01 commited on
Commit
0c08717
·
verified ·
1 Parent(s): 8dbf259

requirements

Browse files
Files changed (1) hide show
  1. requirements.txt +27 -0
requirements.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ git clone https://huggingface.co/spaces/3PMusketeers/DecisionMaker
2
+ fastapi
3
+ uvicorn[standard]
4
+ from fastapi import FastAPI
5
+
6
+ app = FastAPI()
7
+
8
+ @app.get("/")
9
+ def greet_json():
10
+ return {"Hello": "World!"}
11
+ # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
12
+ # you will also find guides on how best to write your Dockerfile
13
+
14
+ FROM python:3.9
15
+
16
+ RUN useradd -m -u 1000 user
17
+ USER user
18
+ ENV PATH="/home/user/.local/bin:$PATH"
19
+
20
+ WORKDIR /app
21
+
22
+ COPY --chown=user ./requirements.txt requirements.txt
23
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
24
+
25
+ COPY --chown=user . /app
26
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
27
+ git add requirements.txt app.py Dockerfile && git commit -m 'Add application file' && git push