Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def main():
|
|
15 |
if user_text.strip():
|
16 |
# Generate image with text
|
17 |
img = create_text_image(user_text)
|
18 |
-
st.image(img, caption="Generated Image",
|
19 |
else:
|
20 |
st.warning("Please enter some text before generating an image.")
|
21 |
|
@@ -46,7 +46,6 @@ def create_text_image(text):
|
|
46 |
img_byte_arr.seek(0)
|
47 |
return img_byte_arr
|
48 |
|
49 |
-
|
50 |
# Run the app
|
51 |
if __name__ == "__main__":
|
52 |
main()
|
|
|
15 |
if user_text.strip():
|
16 |
# Generate image with text
|
17 |
img = create_text_image(user_text)
|
18 |
+
st.image(img, caption="Generated Image", use_container_width=True)
|
19 |
else:
|
20 |
st.warning("Please enter some text before generating an image.")
|
21 |
|
|
|
46 |
img_byte_arr.seek(0)
|
47 |
return img_byte_arr
|
48 |
|
|
|
49 |
# Run the app
|
50 |
if __name__ == "__main__":
|
51 |
main()
|