Teslim Olunlade commited on
Commit
4e93df8
·
1 Parent(s): 8f260d3

Specified streamlit sdk and removed tasks

Browse files
.vscode/launch.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "configurations": [
3
- {
4
- "name": "Docker: Python - General",
5
- "type": "docker",
6
- "request": "launch",
7
- "preLaunchTask": "docker-run: debug",
8
- "python": {
9
- "pathMappings": [
10
- {
11
- "localRoot": "${workspaceFolder}/app",
12
- "remoteRoot": "/usr/src/app"
13
- }
14
- ],
15
- "projectType": "general"
16
- }
17
- }
18
- ]
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.vscode/tasks.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "version": "2.0.0",
3
- "tasks": [
4
- {
5
- "type": "docker-build",
6
- "label": "docker-build",
7
- "platform": "python",
8
- "dockerBuild": {
9
- "tag": "datamining/app:latest",
10
- "dockerfile": "${workspaceFolder}/app/Dockerfile",
11
- "context": "${workspaceFolder}/app",
12
- "pull": true
13
- },
14
- "group": {
15
- "kind": "build",
16
- "isDefault": true
17
- }
18
- },
19
- {
20
- "type": "docker-run",
21
- "label": "docker-run: debug",
22
- "dependsOn": [
23
- "docker-build"
24
- ],
25
- "python": {
26
- "file": "main.py"
27
- },
28
- "group": {
29
- "kind": "test",
30
- "isDefault": true
31
- }
32
- }
33
- ]
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -2,10 +2,11 @@
2
  title: Toxic Tweets
3
  sdk: streamlit
4
  app_file: app/main.py
 
5
  pinned: false
6
  ---
7
 
8
- # Datamining Project
9
 
10
  Milestone 2
11
 
 
2
  title: Toxic Tweets
3
  sdk: streamlit
4
  app_file: app/main.py
5
+ sdk_version: 1.19.0
6
  pinned: false
7
  ---
8
 
9
+ ## Datamining Project
10
 
11
  Milestone 2
12
 
app/Dockerfile CHANGED
@@ -8,6 +8,13 @@ ENV PYTHONDONTWRITEBYTECODE=1
8
  # Turns off buffering for easier container logging
9
  ENV PYTHONUNBUFFERED=1
10
 
 
 
 
 
 
 
 
11
  # Install pip requirements
12
  COPY requirements.txt .
13
  RUN python -m pip install -r requirements.txt
@@ -19,5 +26,9 @@ COPY . .
19
  RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /usr/src/app
20
  USER appuser
21
 
 
 
 
 
22
  # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
23
- CMD ["python", "main.py"]
 
8
  # Turns off buffering for easier container logging
9
  ENV PYTHONUNBUFFERED=1
10
 
11
+ RUN apt-get update && apt-get install -y \
12
+ build-essential \
13
+ curl \
14
+ software-properties-common \
15
+ git \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
  # Install pip requirements
19
  COPY requirements.txt .
20
  RUN python -m pip install -r requirements.txt
 
26
  RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /usr/src/app
27
  USER appuser
28
 
29
+ EXPOSE 8501
30
+
31
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
32
+
33
  # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
34
+ ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"]
docker-compose.debug.yml DELETED
@@ -1,9 +0,0 @@
1
- version: '3.4'
2
-
3
- services:
4
- app:
5
- image: datamining/app
6
- build: ./app
7
- command: ["sh", "-c", "pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 main.py "]
8
- ports:
9
- - 5678:5678
 
 
 
 
 
 
 
 
 
 
docker-compose.yml CHANGED
@@ -4,3 +4,5 @@ services:
4
  app:
5
  image: datamining/app
6
  build: ./app
 
 
 
4
  app:
5
  image: datamining/app
6
  build: ./app
7
+ ports:
8
+ - 8501:8501
requirements.txt DELETED
@@ -1,88 +0,0 @@
1
- absl-py==1.4.0
2
- altair==4.2.2
3
- astunparse==1.6.3
4
- attrs==22.2.0
5
- blinker==1.6
6
- cachetools==5.3.0
7
- certifi==2022.12.7
8
- charset-normalizer==3.1.0
9
- click==8.1.3
10
- decorator==5.1.1
11
- entrypoints==0.4
12
- filelock==3.10.7
13
- flatbuffers==2.0.7
14
- gast==0.4.0
15
- gitdb==4.0.10
16
- GitPython==3.1.31
17
- google-auth==2.17.2
18
- google-auth-oauthlib==0.4.6
19
- google-pasta==0.2.0
20
- grpcio==1.53.0
21
- h5py==3.8.0
22
- huggingface-hub==0.13.3
23
- idna==3.4
24
- importlib-metadata==6.1.0
25
- Jinja2==3.1.2
26
- jsonschema==4.17.3
27
- keras==2.11.0
28
- keras-nlp==0.4.1
29
- libclang==16.0.0
30
- Markdown==3.4.3
31
- markdown-it-py==2.2.0
32
- MarkupSafe==2.1.2
33
- mdurl==0.1.2
34
- numpy==1.24.2
35
- oauthlib==3.2.2
36
- onnx==1.12.0
37
- onnxconverter-common==1.13.0
38
- opt-einsum==3.3.0
39
- packaging==23.0
40
- pandas==1.5.3
41
- Pillow==9.5.0
42
- protobuf==3.19.6
43
- pyarrow==11.0.0
44
- pyasn1==0.4.8
45
- pyasn1-modules==0.2.8
46
- pydeck==0.8.0
47
- Pygments==2.14.0
48
- Pympler==1.0.1
49
- pyrsistent==0.19.3
50
- python-dateutil==2.8.2
51
- pytz==2023.3
52
- pytz-deprecation-shim==0.1.0.post0
53
- PyYAML==6.0
54
- regex==2023.3.23
55
- requests==2.28.2
56
- requests-oauthlib==1.3.1
57
- rich==13.3.3
58
- rsa==4.9
59
- semver==3.0.0
60
- six==1.16.0
61
- smmap==5.0.0
62
- streamlit==1.20.0
63
- tensorboard==2.11.2
64
- tensorboard-data-server==0.6.1
65
- tensorboard-plugin-wit==1.8.1
66
- tensorflow==2.11.1
67
- tensorflow-cpu==2.11.1
68
- tensorflow-estimator==2.11.0
69
- tensorflow-hub==0.13.0
70
- tensorflow-io-gcs-filesystem==0.32.0
71
- tensorflow-text==2.11.0
72
- termcolor==2.2.0
73
- tf2onnx==1.14.0
74
- tokenizers==0.13.3
75
- toml==0.10.2
76
- toolz==0.12.0
77
- tornado==6.2
78
- tqdm==4.65.0
79
- transformers==4.27.4
80
- typing_extensions==4.5.0
81
- tzdata==2023.3
82
- tzlocal==4.3
83
- urllib3==1.26.15
84
- validators==0.20.0
85
- watchdog==3.0.0
86
- Werkzeug==2.2.3
87
- wrapt==1.15.0
88
- zipp==3.15.0