Spaces:
Running
on
T4
Running
on
T4
File size: 713 Bytes
9d0299c 5d0bb1d 0c8a24f 5d0bb1d 38471f1 5d0bb1d 42e161b 6a42a11 5d0bb1d c322dc7 5d0bb1d 9d0299c 6a42a11 9d0299c 748e472 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04
RUN apt-get update && apt-get install --no-install-recommends -y \
espeak-ng \
build-essential \
python3.10 \
python3.10-dev \
python3-pip \
git \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
RUN pip3 install https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.4-cu122/llama_cpp_python-0.3.4-cp310-cp310-linux_x86_64.whl
RUN pip3 install phonemizer
RUN pip3 install document-to-podcast
COPY --chown=user . $HOME/app
EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "app.py", "--server.enableXsrfProtection", "false"]
|