API-Handler commited on
Commit
49df55c
·
verified ·
1 Parent(s): 8504580

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +16 -0
  2. requirements.txt +6 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+ RUN apt update
7
+
8
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
+
10
+ COPY . .
11
+
12
+ RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/api_handler.py
13
+ RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/main.py
14
+ RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/models.py
15
+
16
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ fastapi==0.99.1
2
+ mangum==0.17.0
3
+ uvicorn==0.15.0
4
+ gunicorn==20.1.0
5
+ requests==2.26.0
6
+ python-multipart==0.0.5