Upload 3 files
Browse files- src/Dockerfile +4 -3
- src/requirements.txt +12 -3
src/Dockerfile
CHANGED
|
@@ -8,13 +8,14 @@ RUN apt-get update && apt-get install -y \
|
|
| 8 |
git \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
-
COPY requirements.txt ./
|
| 12 |
COPY src/ ./src/
|
| 13 |
|
| 14 |
RUN pip install --upgrade pip
|
| 15 |
RUN pip install -r requirements.txt
|
| 16 |
-
RUN pip install fastopic==1.0.1 --no-deps
|
| 17 |
-
RUN pip install topmost==1.0.2 --no-deps
|
| 18 |
|
| 19 |
EXPOSE 8501
|
|
|
|
|
|
|
|
|
|
| 20 |
ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
|
|
|
| 8 |
git \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
+
COPY requirements.txt ./
|
| 12 |
COPY src/ ./src/
|
| 13 |
|
| 14 |
RUN pip install --upgrade pip
|
| 15 |
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
| 16 |
|
| 17 |
EXPOSE 8501
|
| 18 |
+
|
| 19 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 20 |
+
|
| 21 |
ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
src/requirements.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
torchvision==0.12.0 # compatible with torch 1.11
|
| 3 |
streamlit==1.44.0
|
|
|
|
|
|
|
| 4 |
pandas==2.2.3
|
| 5 |
numpy
|
| 6 |
matplotlib
|
|
@@ -8,13 +9,21 @@ seaborn
|
|
| 8 |
plotly
|
| 9 |
pillow
|
| 10 |
wordcloud
|
|
|
|
|
|
|
| 11 |
fastopic==1.0.1 --no-deps
|
| 12 |
topmost==1.0.2 --no-deps
|
| 13 |
gensim==4.3.3
|
| 14 |
joblib==1.2.0
|
| 15 |
scikit-learn==1.5.2
|
| 16 |
-
tensorflow==2.17.1
|
| 17 |
nltk
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
|
|
|
|
| 1 |
+
# Streamlit
|
|
|
|
| 2 |
streamlit==1.44.0
|
| 3 |
+
|
| 4 |
+
# Data science
|
| 5 |
pandas==2.2.3
|
| 6 |
numpy
|
| 7 |
matplotlib
|
|
|
|
| 9 |
plotly
|
| 10 |
pillow
|
| 11 |
wordcloud
|
| 12 |
+
|
| 13 |
+
# NLP / Topic Modeling
|
| 14 |
fastopic==1.0.1 --no-deps
|
| 15 |
topmost==1.0.2 --no-deps
|
| 16 |
gensim==4.3.3
|
| 17 |
joblib==1.2.0
|
| 18 |
scikit-learn==1.5.2
|
|
|
|
| 19 |
nltk
|
| 20 |
|
| 21 |
+
# Torch (compatible with fastopic/topmost)
|
| 22 |
+
torch==1.11.0
|
| 23 |
+
torchvision==0.12.0
|
| 24 |
+
|
| 25 |
+
# TensorFlow
|
| 26 |
+
tensorflow==2.17.1
|
| 27 |
+
|
| 28 |
|
| 29 |
|