Spaces:
Runtime error
Runtime error
File size: 691 Bytes
43a8e28 c461fcc 2256d09 43a8e28 c461fcc 2256d09 43a8e28 c461fcc 2256d09 43a8e28 c461fcc 2256d09 43a8e28 c461fcc 2256d09 6bda1de c461fcc 2256d09 43a8e28 c461fcc 2256d09 |
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 30 |
FROM continuumio/miniconda3
# Install necessary packages
RUN apt update && apt install espeak-ng ffmpeg -y
# Set working directory
WORKDIR /root
# Add requirements file and install dependencies
ADD ./requirements.txt .
RUN pip install -r requirements.txt
# Add source code
ADD ./src .
# Create a writable cache directory
RUN mkdir -p /root/.cache/huggingface && chmod -R 777 /root/.cache
# Set environment variable for cache directory
ENV TRANSFORMERS_CACHE=/root/.cache/huggingface
# Ensure all files have appropriate permissions
RUN chmod -R 755 /root
# Download NLTK data
RUN python -m nltk.downloader punkt
# Specify the command to run the application
CMD ["python", "main.py"]
|