violetteallotey commited on
Commit
e72900a
1 Parent(s): 8b8accf
Files changed (2) hide show
  1. dockerfile +6 -8
  2. requirements.txt +9 -8
dockerfile CHANGED
@@ -1,22 +1,20 @@
1
  FROM python:3.9
2
- #This creates a directory for your app. Do not change anything here
3
  WORKDIR /app
4
 
5
- #This also makes your directory for the cache writable. DO not change anything here
6
  RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache
7
 
8
- # This creates a virtual environment for your app on your hugging face. Dont change anything here as well
9
  ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
10
 
11
- #This copies the requirement to your hugging face account. Do not change anything
12
  COPY requirements.txt .
13
 
14
- # This copies your streamlit app to your hugging face
15
- # change 'sentimentappstreamlit.py' to the actual name of your app. There is one space and a (fullstop)after the name of your app
16
  COPY sentimentapp.py .
17
 
18
- #If you used any picture in your application,first make sure its in the same path as your app.
19
- #This code copies the picture unto your hugging face.
20
  COPY senti.jpg .
21
  COPY negative-smiley-face.png .
22
  COPY positive-smiley-face.png .
 
1
  FROM python:3.9
2
+
3
  WORKDIR /app
4
 
5
+
6
  RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache
7
 
8
+
9
  ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
10
 
11
+
12
  COPY requirements.txt .
13
 
14
+
 
15
  COPY sentimentapp.py .
16
 
17
+
 
18
  COPY senti.jpg .
19
  COPY negative-smiley-face.png .
20
  COPY positive-smiley-face.png .
requirements.txt CHANGED
@@ -1,8 +1,9 @@
1
- streamlit==1.21.0
2
- transformers==4.28.1
3
- pandas==1.5.1
4
- altair==4.2.2
5
- textblob==0.17.1
6
- vaderSentiment==3.3.2
7
- Pillow==9.3.0
8
- torch==1.9.1
 
 
1
+ streamlit
2
+ transformers
3
+ pandas
4
+ altair
5
+ textblob
6
+ vaderSentiment
7
+ Pillow
8
+ torch
9
+ base64