Spaces:
Runtime error
Runtime error
Download Dockerfile from GhylB/Sentiment_App: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/spaces/GhylB/Sentiment_App/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/GhylB/Sentiment_App/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/GhylB/Sentiment_App/resolve/main/Dockerfile
593 Bytes
| 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"] |