Quivara commited on
Commit
1990456
·
verified ·
1 Parent(s): 47b62eb

Upload 3 files

Browse files
Files changed (3) hide show
  1. .env +2 -0
  2. Dockerfile +22 -0
  3. requirements.txt +17 -0
.env ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ REDDIT_CLIENT_ID=GgWE7FursBAvZhx10Lkpwg
2
+ REDDIT_CLIENT_SECRET=9q6IbYUQN21PrpzMx1NNyv8YRBFEcg
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ # Copy the requirements from the subfolder to the docker container
6
+ # (Adjust path if your requirements.txt is in the root)
7
+ COPY requirements.txt /code/requirements.txt
8
+
9
+ # Install libraries
10
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
+
12
+ # Copy all your project files
13
+ COPY . .
14
+
15
+ # Set permissions
16
+ RUN mkdir -p /tmp/cache
17
+ RUN chmod 777 /tmp/cache
18
+ ENV TRANSFORMERS_CACHE=/tmp/cache
19
+ RUN chmod +x /code/start.sh
20
+
21
+ # Run the updated start script
22
+ CMD ["/code/start.sh"]
requirements.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ flask
2
+ flask-sqlalchemy
3
+ python-dotenv
4
+ pandas
5
+ numpy
6
+ scikit-learn
7
+ asyncpraw
8
+ torch
9
+ transformers
10
+ sentencepiece
11
+ protobuf
12
+ accelerate
13
+ flask_cors
14
+ flask-login
15
+ werkzeuggit rm -r --cached .
16
+ git add .
17
+ gunicorn