Harisri commited on
Commit
5df97e2
·
verified ·
1 Parent(s): 59c5ee5

modifying depreciated code

Browse files
Files changed (1) hide show
  1. 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", use_column_width=True)
 
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}")