sunbal7 commited on
Commit
c7e7458
Β·
verified Β·
1 Parent(s): af40b99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -324,7 +324,7 @@ with col2:
324
  cols = st.columns(len(st.session_state.animation_frames))
325
  for i, frame in enumerate(st.session_state.animation_frames):
326
  with cols[i]:
327
- st.image(frame, caption=f"Frame {i+1}", use_column_width=True)
328
 
329
  # Create an animated GIF
330
  gif_buffer = BytesIO()
@@ -353,15 +353,15 @@ with col2:
353
  elif st.session_state.animation_generated:
354
  st.warning("Couldn't generate animation. Try a different story!")
355
  st.image("https://img.freepik.com/free-vector/hand-drawn-colorful-space-background_23-2148821798.jpg",
356
- use_column_width=True)
357
  elif story_text:
358
  # Show storyboard preview
359
  preview_img = create_storyboard_image(story_text)
360
- st.image(preview_img, caption="Your Story Preview", use_column_width=True)
361
  st.info("πŸ‘† Click Generate to bring your story to life!")
362
  else:
363
  st.image("https://img.freepik.com/free-vector/hand-drawn-colorful-space-background_23-2148821798.jpg",
364
- use_column_width=True)
365
  st.info("πŸ‘† Write your story and click Generate to see the magic!")
366
 
367
  st.markdown('</div>', unsafe_allow_html=True)
 
324
  cols = st.columns(len(st.session_state.animation_frames))
325
  for i, frame in enumerate(st.session_state.animation_frames):
326
  with cols[i]:
327
+ st.image(frame, caption=f"Frame {i+1}", use_container_width=True)
328
 
329
  # Create an animated GIF
330
  gif_buffer = BytesIO()
 
353
  elif st.session_state.animation_generated:
354
  st.warning("Couldn't generate animation. Try a different story!")
355
  st.image("https://img.freepik.com/free-vector/hand-drawn-colorful-space-background_23-2148821798.jpg",
356
+ use_container_width=True)
357
  elif story_text:
358
  # Show storyboard preview
359
  preview_img = create_storyboard_image(story_text)
360
+ st.image(preview_img, caption="Your Story Preview", use_container_width=True)
361
  st.info("πŸ‘† Click Generate to bring your story to life!")
362
  else:
363
  st.image("https://img.freepik.com/free-vector/hand-drawn-colorful-space-background_23-2148821798.jpg",
364
+ use_container_width=True)
365
  st.info("πŸ‘† Write your story and click Generate to see the magic!")
366
 
367
  st.markdown('</div>', unsafe_allow_html=True)