Spaces:
Running
Running
Update generator_function/image_function.py
Browse files
generator_function/image_function.py
CHANGED
|
@@ -283,13 +283,13 @@ def handle_image_generation_optimized(
|
|
| 283 |
|
| 284 |
image_bytes_list.append((f"image_{i + 1}.png", b))
|
| 285 |
|
| 286 |
-
st.image(b,
|
| 287 |
st.download_button(
|
| 288 |
f"Download image ",
|
| 289 |
b,
|
| 290 |
file_name=f"image_{i + 1}.png",
|
| 291 |
mime="image/png",
|
| 292 |
-
|
| 293 |
)
|
| 294 |
except Exception as e:
|
| 295 |
st.error(f"Display failed: {e}")
|
|
@@ -307,7 +307,7 @@ def handle_image_generation_optimized(
|
|
| 307 |
data=zip_buffer,
|
| 308 |
file_name="all_images.zip",
|
| 309 |
mime="application/zip",
|
| 310 |
-
|
| 311 |
)
|
| 312 |
|
| 313 |
else:
|
|
|
|
| 283 |
|
| 284 |
image_bytes_list.append((f"image_{i + 1}.png", b))
|
| 285 |
|
| 286 |
+
st.image(b, width='stretch')
|
| 287 |
st.download_button(
|
| 288 |
f"Download image ",
|
| 289 |
b,
|
| 290 |
file_name=f"image_{i + 1}.png",
|
| 291 |
mime="image/png",
|
| 292 |
+
width='stretch',
|
| 293 |
)
|
| 294 |
except Exception as e:
|
| 295 |
st.error(f"Display failed: {e}")
|
|
|
|
| 307 |
data=zip_buffer,
|
| 308 |
file_name="all_images.zip",
|
| 309 |
mime="application/zip",
|
| 310 |
+
width='stretch',
|
| 311 |
)
|
| 312 |
|
| 313 |
else:
|