aryanj10 commited on
Commit
841f13b
·
1 Parent(s): a1ba552

update this

Browse files
Files changed (3) hide show
  1. Dockerfile +8 -7
  2. README.md +6 -3
  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 app.py .
15
- COPY resnet18_cat.pth .
16
 
17
  # Install Python dependencies
18
- RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  # Expose Streamlit default port
21
- EXPOSE 7860
22
 
23
  # Healthcheck (optional)
24
- HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1
25
 
26
  # Run the Streamlit app using app.py
27
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
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: streamlit
7
- sdk_version: "1.31.1"
8
- app_file: app.py
 
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