Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -383,16 +383,16 @@ def main_app():
|
|
383 |
|
384 |
cols = st.columns(num_images_to_display)
|
385 |
for i, image_data in enumerate(images_for_window):
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
st.image(image_data['image_url'], width = 150)
|
397 |
st.write(f"**Prompt:** {image_data['prompt']}")
|
398 |
st.write(f"**Aspect Ratio:** {image_data['aspect_ratio']}")
|
@@ -404,7 +404,6 @@ def main_app():
|
|
404 |
# Logout button
|
405 |
if st.button("Logout", on_click=logout_callback):
|
406 |
pass
|
407 |
-
|
408 |
# Render the appropriate screen based on login status
|
409 |
if st.session_state.logged_in:
|
410 |
main_app()
|
|
|
383 |
|
384 |
cols = st.columns(num_images_to_display)
|
385 |
for i, image_data in enumerate(images_for_window):
|
386 |
+
with cols[i]:
|
387 |
+
if image_data.get('thumbnail_url'):
|
388 |
+
with st.expander("More", expanded=False):
|
389 |
+
st.image(image_data['image_url'], width = 200)
|
390 |
+
st.write(f"**Prompt:** {image_data['prompt']}")
|
391 |
+
st.write(f"**Aspect Ratio:** {image_data['aspect_ratio']}")
|
392 |
+
st.write(f"**Realism:** {image_data['realism']}")
|
393 |
+
st.markdown("---")
|
394 |
+
st.image(image_data['thumbnail_url'], width = 150)
|
395 |
+
else:
|
396 |
st.image(image_data['image_url'], width = 150)
|
397 |
st.write(f"**Prompt:** {image_data['prompt']}")
|
398 |
st.write(f"**Aspect Ratio:** {image_data['aspect_ratio']}")
|
|
|
404 |
# Logout button
|
405 |
if st.button("Logout", on_click=logout_callback):
|
406 |
pass
|
|
|
407 |
# Render the appropriate screen based on login status
|
408 |
if st.session_state.logged_in:
|
409 |
main_app()
|