Spaces:
Running
Running
Commit
·
22e0bab
1
Parent(s):
6dbe10f
file upload gallery
Browse files
app.py
CHANGED
|
@@ -618,10 +618,13 @@ def display_image_gallery():
|
|
| 618 |
base64_image = image_to_base64(img)
|
| 619 |
|
| 620 |
# Append the image to the grid HTML
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 621 |
img_html = f"""
|
| 622 |
-
<div style='display: flex; flex-wrap: wrap; overflow-y: auto; max-height: 400px;'>
|
| 623 |
<img src='data:image/jpeg;base64,{base64_image}' alt='Image' style='max-width: 100%; height: auto;'>
|
| 624 |
-
</div>
|
| 625 |
"""
|
| 626 |
img_grid_html += img_html
|
| 627 |
# st.markdown(img_html, unsafe_allow_html=True)
|
|
|
|
| 618 |
base64_image = image_to_base64(img)
|
| 619 |
|
| 620 |
# Append the image to the grid HTML
|
| 621 |
+
# img_html = f"""
|
| 622 |
+
# <div style='display: flex; flex-wrap: wrap; overflow-y: auto; max-height: 400px;'>
|
| 623 |
+
# <img src='data:image/jpeg;base64,{base64_image}' alt='Image' style='max-width: 100%; height: auto;'>
|
| 624 |
+
# </div>
|
| 625 |
+
# """
|
| 626 |
img_html = f"""
|
|
|
|
| 627 |
<img src='data:image/jpeg;base64,{base64_image}' alt='Image' style='max-width: 100%; height: auto;'>
|
|
|
|
| 628 |
"""
|
| 629 |
img_grid_html += img_html
|
| 630 |
# st.markdown(img_html, unsafe_allow_html=True)
|