Anon commited on
Commit
2a7639a
·
1 Parent(s): bdf7fdf

small fixes.

Browse files
Files changed (2) hide show
  1. Dockerfile +8 -2
  2. src/streamlit_app.py +2 -2
Dockerfile CHANGED
@@ -6,10 +6,16 @@ RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
8
  git \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- COPY requirements.txt ./
12
- COPY src/ ./src/
 
 
 
 
 
13
 
14
  # Debug: show what got copied
15
  RUN echo "Contents of /app/src:" && ls -lah /app/src && \
 
6
  build-essential \
7
  curl \
8
  git \
9
+ git-lfs \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ COPY . .
13
+
14
+ RUN git lfs install && \
15
+ git lfs pull && \
16
+ echo "After LFS pull, showing GIF sizes:" && \
17
+ (ls -lah /app/src/hf_gifs 2>/dev/null || true) && \
18
+ (ls -lah /app/src/hf_gifs 2>/dev/null || true)
19
 
20
  # Debug: show what got copied
21
  RUN echo "Contents of /app/src:" && ls -lah /app/src && \
src/streamlit_app.py CHANGED
@@ -97,8 +97,8 @@ else:
97
 
98
  # Render in rows of 4
99
  items = filtered.to_dict(orient="records")
100
- for i in range(0, len(items), 4):
101
- cols = st.columns(4)
102
  for j, item in enumerate(items[i : i + 4]):
103
  caption = f"{item['sparsity']} out of {item['sparsity_out_of']}"
104
  cols[j].image(item["path"], caption=caption, use_container_width=True)
 
97
 
98
  # Render in rows of 4
99
  items = filtered.to_dict(orient="records")
100
+ for i in range(0, len(items), 2):
101
+ cols = st.columns(2)
102
  for j, item in enumerate(items[i : i + 4]):
103
  caption = f"{item['sparsity']} out of {item['sparsity_out_of']}"
104
  cols[j].image(item["path"], caption=caption, use_container_width=True)