daniel-de-leon commited on
Commit
5f2848a
1 Parent(s): 0095847

add reqs and app file

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. main.py +8 -0
  3. requirments.txt +6 -0
Dockerfile CHANGED
@@ -11,4 +11,4 @@ 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"]
 
11
 
12
  COPY . .
13
 
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
main.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI()
4
+
5
+ @app.get('/')
6
+
7
+ def read_root():
8
+ return {"Hello": "World!"}
requirments.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ fastapi==0.74.*
2
+ requests==2.27.*
3
+ sentencepiece==0.1.*
4
+ torch==1.11.*
5
+ transformers==4.*
6
+ uvicorn[standard]==0.17.*