BowoZZZ commited on
Commit
92c2304
·
verified ·
1 Parent(s): cc0de1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", use_column_width=True)
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", use_column_width=True)
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()