Anon
commited on
Commit
·
3efaf3b
1
Parent(s):
2a7639a
rows of 2.
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -95,13 +95,13 @@ else:
|
|
| 95 |
|
| 96 |
st.caption(f"Showing {len(filtered)} GIF(s) from: {GIF_DIR}")
|
| 97 |
|
| 98 |
-
# Render in rows of
|
| 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,
|
| 105 |
|
| 106 |
st.divider()
|
| 107 |
|
|
|
|
| 95 |
|
| 96 |
st.caption(f"Showing {len(filtered)} GIF(s) from: {GIF_DIR}")
|
| 97 |
|
| 98 |
+
# Render in rows of 2
|
| 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, uwidth=True)
|
| 105 |
|
| 106 |
st.divider()
|
| 107 |
|