modifying depreciated code
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -124,7 +124,8 @@ if submitted and story.strip():
|
|
| 124 |
img.save(card_path)
|
| 125 |
with open(card_path, "rb") as f:
|
| 126 |
st.download_button("Download Story Card", f, file_name=card_filename)
|
| 127 |
-
st.image(card_path, caption="Your Story Card",
|
|
|
|
| 128 |
st.success("Story card generated!")
|
| 129 |
except Exception as e:
|
| 130 |
st.error(f"Story card generation failed: {e}")
|
|
|
|
| 124 |
img.save(card_path)
|
| 125 |
with open(card_path, "rb") as f:
|
| 126 |
st.download_button("Download Story Card", f, file_name=card_filename)
|
| 127 |
+
st.image(card_path, caption="Your Story Card", use_container_width=True)
|
| 128 |
+
|
| 129 |
st.success("Story card generated!")
|
| 130 |
except Exception as e:
|
| 131 |
st.error(f"Story card generation failed: {e}")
|