Spaces:
Running
Running
update this
Browse files- Dockerfile +8 -7
- README.md +6 -3
- app.py → src/streamlit_app.py +0 -0
Dockerfile
CHANGED
@@ -6,22 +6,23 @@ WORKDIR /app
|
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
build-essential \
|
8 |
curl \
|
|
|
9 |
git \
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
# Copy files
|
13 |
-
COPY requirements.txt
|
14 |
-
COPY
|
15 |
-
COPY
|
16 |
|
17 |
# Install Python dependencies
|
18 |
-
RUN
|
19 |
|
20 |
# Expose Streamlit default port
|
21 |
-
EXPOSE
|
22 |
|
23 |
# Healthcheck (optional)
|
24 |
-
HEALTHCHECK CMD curl --fail http://localhost:
|
25 |
|
26 |
# Run the Streamlit app using app.py
|
27 |
-
|
|
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
build-essential \
|
8 |
curl \
|
9 |
+
software-properties-common \
|
10 |
git \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
# Copy files
|
14 |
+
COPY requirements.txt ./
|
15 |
+
COPY resnet18_cat.pth ./
|
16 |
+
COPY src/ ./src/
|
17 |
|
18 |
# Install Python dependencies
|
19 |
+
RUN pip3 install -r requirements.txt
|
20 |
|
21 |
# Expose Streamlit default port
|
22 |
+
EXPOSE 8501
|
23 |
|
24 |
# Healthcheck (optional)
|
25 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
26 |
|
27 |
# Run the Streamlit app using app.py
|
28 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
README.md
CHANGED
@@ -3,10 +3,13 @@ title: Cat XAI App
|
|
3 |
emoji: 🐱
|
4 |
colorFrom: pink
|
5 |
colorTo: indigo
|
6 |
-
sdk:
|
7 |
-
|
8 |
-
|
|
|
9 |
pinned: false
|
|
|
|
|
10 |
---
|
11 |
|
12 |
# Explainable AI for Image Classification using Twin System and Grad-CAM
|
|
|
3 |
emoji: 🐱
|
4 |
colorFrom: pink
|
5 |
colorTo: indigo
|
6 |
+
sdk: docker
|
7 |
+
app_port: 8501
|
8 |
+
tags:
|
9 |
+
- streamlit
|
10 |
pinned: false
|
11 |
+
short_description: Streamlit template space
|
12 |
+
license: mit
|
13 |
---
|
14 |
|
15 |
# Explainable AI for Image Classification using Twin System and Grad-CAM
|
app.py → src/streamlit_app.py
RENAMED
File without changes
|