Spaces:
Sleeping
Sleeping
Upload 16 files
Browse files- .gitattributes +3 -0
- .streamlit/config.toml +7 -0
- Dockerfile.streamlit +24 -0
- datasets/spam.csv +0 -0
- datasets/span_cleaned.csv +0 -0
- models/BernoulliNB.pkl +3 -0
- models/Extra_Tree.pkl +3 -0
- notebook/SMS_spam_detection.ipynb +0 -0
- static/images/api.png +0 -0
- static/images/cover.jpg +0 -0
- static/images/hf-logo.svg +9 -0
- static/images/icon.png +0 -0
- static/images/icon.svg +6 -0
- static/images/spam.jpg +3 -0
- static/images/spam.png +3 -0
- static/images/spam1.jpeg +3 -0
- static/images/spam1bg.png +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
static/images/spam.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
static/images/spam.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
static/images/spam1.jpeg filter=lfs diff=lfs merge=lfs -text
|
.streamlit/config.toml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[theme]
|
| 2 |
+
base="dark"
|
| 3 |
+
primaryColor="#36bcdc"
|
| 4 |
+
secondaryBackgroundColor="#1767d8"
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
Dockerfile.streamlit
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
FROM python:3.9-slim
|
| 3 |
+
|
| 4 |
+
# Set environment variables
|
| 5 |
+
ENV PYTHONUNBUFFERED 1
|
| 6 |
+
ENV PYTHONDONTWRITEBYTECODE 1
|
| 7 |
+
|
| 8 |
+
# Set the working directory
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
|
| 11 |
+
# Copy the requirements file
|
| 12 |
+
COPY requirements.txt /app/
|
| 13 |
+
|
| 14 |
+
# Install the dependencies
|
| 15 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
+
|
| 17 |
+
# Copy the rest of the application
|
| 18 |
+
COPY . /app/
|
| 19 |
+
|
| 20 |
+
# Expose the port the app runs on
|
| 21 |
+
EXPOSE 8501
|
| 22 |
+
|
| 23 |
+
# Start the Streamlit server
|
| 24 |
+
CMD ["streamlit", "run", "docker_app.py", "--server.port", "8501", "--server.enableCORS", "false"]
|
datasets/spam.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
datasets/span_cleaned.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/BernoulliNB.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e33dd1e679f0259eab2a49955705d740e93029a3ab61412ae77be31acd2e8b35
|
| 3 |
+
size 329102
|
models/Extra_Tree.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:16d58b290acaa4beb551ccaa70c1a573250f45c9122b49c252a4e1051574d0e5
|
| 3 |
+
size 7620514
|
notebook/SMS_spam_detection.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/images/api.png
ADDED
|
static/images/cover.jpg
ADDED
|
static/images/hf-logo.svg
ADDED
|
|
static/images/icon.png
ADDED
|
|
static/images/icon.svg
ADDED
|
|
static/images/spam.jpg
ADDED
|
Git LFS Details
|
static/images/spam.png
ADDED
|
Git LFS Details
|
static/images/spam1.jpeg
ADDED
|
Git LFS Details
|
static/images/spam1bg.png
ADDED
|