Spaces:
Running
Running
API-Handler
commited on
Upload 2 files
Browse files- Dockerfile +5 -5
- requirements.txt +6 -0
Dockerfile
CHANGED
@@ -2,15 +2,15 @@ FROM python:3.10
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
-
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/api_handler.py
|
6 |
-
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/main.py
|
7 |
-
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/models.py
|
8 |
-
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/requirements.txt
|
9 |
-
|
10 |
COPY ./requirements.txt /code/requirements.txt
|
11 |
|
12 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
13 |
|
14 |
COPY . .
|
15 |
|
|
|
|
|
|
|
|
|
|
|
16 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
COPY . .
|
10 |
|
11 |
+
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/api_handler.py
|
12 |
+
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/main.py
|
13 |
+
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/models.py
|
14 |
+
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/requirements.txt
|
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
|