Spaces:
Runtime error
Runtime error
# requirements.txt | |
fastapi==0.68.0 | |
uvicorn==0.15.0 | |
torch | |
transformers | |
git+https://github.com/VarunGumma/IndicTransToolkit.git | |
pydantic | |
python-multipart | |
# Dockerfile | |
FROM python:3.9 | |
WORKDIR /code | |
# Install git | |
RUN apt-get update && apt-get install -y git | |
COPY ./requirements.txt /code/requirements.txt | |
COPY ./app.py /code/app.py | |
# Install dependencies | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
# Expose the port | |
EXPOSE 7860 | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |