Update app.py
Browse files
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",
|
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",
|
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)
|