Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ if prompt_from_url:
|
|
22 |
prompt = prompt_from_url[0]
|
23 |
image_bytes = query({"inputs": prompt})
|
24 |
image = Image.open(io.BytesIO(image_bytes))
|
25 |
-
st.image(image, caption="Generated Image",
|
26 |
|
27 |
# Provide download link
|
28 |
img_buffer = io.BytesIO()
|
@@ -49,7 +49,7 @@ else:
|
|
49 |
|
50 |
# Display Image
|
51 |
image = Image.open(io.BytesIO(image_bytes))
|
52 |
-
st.image(image, caption="Generated Image",
|
53 |
|
54 |
# Convert Image to Bytes for Download
|
55 |
img_buffer = io.BytesIO()
|
|
|
22 |
prompt = prompt_from_url[0]
|
23 |
image_bytes = query({"inputs": prompt})
|
24 |
image = Image.open(io.BytesIO(image_bytes))
|
25 |
+
st.image(image, caption="Generated Image", use_container_width=True)
|
26 |
|
27 |
# Provide download link
|
28 |
img_buffer = io.BytesIO()
|
|
|
49 |
|
50 |
# Display Image
|
51 |
image = Image.open(io.BytesIO(image_bytes))
|
52 |
+
st.image(image, caption="Generated Image", use_container_width=True)
|
53 |
|
54 |
# Convert Image to Bytes for Download
|
55 |
img_buffer = io.BytesIO()
|