FROM python:3.9 #This creates a directory for your app. Do not change anything here WORKDIR /app #This also makes your directory for the cache writable. DO not change anything here RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache # This creates a virtual environment for your app on your hugging face. Dont change anything here as well ENV TRANSFORMERS_CACHE /.cache/huggingface/hub #This copies the requirement to your hugging face account. Do not change anything COPY requirements.txt . # This copies your streamlit app to your hugging face # change 'sentimentappstreamlit.py' to the actual name of your app. There is one space and a (fullstop)after the name of your app COPY sentimentapp.py . #If you used any picture in your application,first make sure its in the same path as your app. #This code copies the picture unto your hugging face. COPY senti.jpg . COPY negative-smiley-face.png . COPY positive-smiley-face.png . COPY neutral-smiley-face.png . COPY swipe-swoosh.mp3 . RUN pip3 install --upgrade pip RUN pip3 install -r requirements.txt CMD ["streamlit","run","sentimentapp.py", "--server.address", "0.0.0.0", "--server.port", "7860", "--browser.serverAddress", "Adoley/personalized_app.hf.space", "--browser.serverAddress","0.0.0.0:7860"]