xieqilenb commited on
Commit
f72a080
·
verified ·
1 Parent(s): b55983c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,7 +55,7 @@ def main():
55
 
56
  if uploaded_file is not None:
57
  image = Image.open(uploaded_file)
58
- st.image(image, caption="Uploaded image", use_column_width=True)
59
 
60
  with st.spinner("Image caption being generated..."):
61
  caption = generate_caption(uploaded_file)
@@ -71,7 +71,7 @@ def main():
71
  # illustration = generate_illustration(story[:200])
72
 
73
  # st.write("### Story Illustrations:")
74
- # st.image(illustration, caption="Story Illustrations", use_column_width=True)
75
 
76
  with st.spinner("Converting to voice...."):
77
  audio_file = text_to_speech(story)
 
55
 
56
  if uploaded_file is not None:
57
  image = Image.open(uploaded_file)
58
+ st.image(image, caption="Uploaded image", use_container_width=True)
59
 
60
  with st.spinner("Image caption being generated..."):
61
  caption = generate_caption(uploaded_file)
 
71
  # illustration = generate_illustration(story[:200])
72
 
73
  # st.write("### Story Illustrations:")
74
+ # st.image(illustration, caption="Story Illustrations", use_container_width=True)
75
 
76
  with st.spinner("Converting to voice...."):
77
  audio_file = text_to_speech(story)