Spaces:
Sleeping
Sleeping
File size: 593 Bytes
dfb1910 df993a2 0f273eb df993a2 4fd2283 4dd43cf 4fd2283 d72692c 0f273eb df993a2 efc309d b3b17b0 a3751bd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM python:3.9
WORKDIR /app
# Create a writable directory for the cache
RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache
# Set the TRANSFORMERS_CACHE environment variable
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
COPY requirements.txt .
COPY sentimentappstreamlit.py .
COPY sentiments.png .
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
CMD ["streamlit","run","sentimentappstreamlit.py", "--server.address", "0.0.0.0", "--server.port", "7860", "--browser.serverAddress", "ghylb-Sentiment_app.hf.space", "--browser.serverAddress","0.0.0.0:7860"] |