calvin-vin commited on
Commit
02a4418
1 Parent(s): ac36e20

add application file

Browse files
Files changed (3) hide show
  1. .gitignore +2 -1
  2. Dockerfile +14 -0
  3. requirements.txt +12 -0
.gitignore CHANGED
@@ -1,3 +1,4 @@
1
  __pycache__
2
  venv/
3
- .env
 
 
1
  __pycache__
2
  venv/
3
+ .env
4
+ .vscode
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10.4
2
+
3
+ WORKDIR /app
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ RUN useradd -m -u 1000 user
10
+ USER user
11
+
12
+ COPY --chown=user . /code
13
+
14
+ CMD ["fastapi", "run", "app/main.py", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ beautifulsoup4==4.11.1
2
+ fastapi==0.111.0
3
+ gensim==4.3.2
4
+ googletrans_py39==4.0.2
5
+ httpx==0.27.0
6
+ matplotlib==3.9.0
7
+ nltk==3.8.1
8
+ pandas==2.2.2
9
+ pysondb==1.6.7
10
+ Sastrawi==1.0.1
11
+ swifter==1.4.0
12
+ textblob==0.18.0.post0