Update app.py
Browse files(CPU Optimized)
app.py
CHANGED
|
@@ -74,7 +74,7 @@ with tab1:
|
|
| 74 |
st.subheader("Square an image demo")
|
| 75 |
img_description = st.text('Image will be squared with color filler where applicable.')
|
| 76 |
|
| 77 |
-
if st.button('Square and Fill Demo'):
|
| 78 |
response = requests.get(url)
|
| 79 |
img = Image.open(BytesIO(response.content))
|
| 80 |
img.load()
|
|
@@ -90,7 +90,7 @@ with tab1:
|
|
| 90 |
st.image(generated_img)
|
| 91 |
|
| 92 |
with tab2:
|
| 93 |
-
st.subheader("Square an image app")
|
| 94 |
img_description = st.text('Image will be squared with color filler where applicable. Suitable for instagram posts.')
|
| 95 |
uploaded_file = st.file_uploader("Upload a JPG image to square and fill with color.", type=['jpg'])
|
| 96 |
|
|
|
|
| 74 |
st.subheader("Square an image demo")
|
| 75 |
img_description = st.text('Image will be squared with color filler where applicable.')
|
| 76 |
|
| 77 |
+
if st.button('Square and Fill Demo (CPU Optimized)'):
|
| 78 |
response = requests.get(url)
|
| 79 |
img = Image.open(BytesIO(response.content))
|
| 80 |
img.load()
|
|
|
|
| 90 |
st.image(generated_img)
|
| 91 |
|
| 92 |
with tab2:
|
| 93 |
+
st.subheader("Square an image app (CPU Optimized)")
|
| 94 |
img_description = st.text('Image will be squared with color filler where applicable. Suitable for instagram posts.')
|
| 95 |
uploaded_file = st.file_uploader("Upload a JPG image to square and fill with color.", type=['jpg'])
|
| 96 |
|