Spaces:
Running
Running
FROM python:3.10 | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
COPY . . | |
RUN wget https://huggingface.co/datasets/DevsDoCode/openai/resolve/main/api_handler.py | |
RUN wget https://huggingface.co/datasets/DevsDoCode/openai/resolve/main/main.py | |
RUN wget https://huggingface.co/datasets/DevsDoCode/openai/resolve/main/models.py | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |