Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -296,7 +296,7 @@ def main():
|
|
296 |
image = process_panorama(image_data['thumb_1024_url'])
|
297 |
image_bytes = BytesIO()
|
298 |
st.write('Resaving image size =', image.size, ' image format = ', image.format)
|
299 |
-
image.save(image_bytes, format=
|
300 |
image = Image.open(image_bytes)
|
301 |
image_bytes = image_bytes.getvalue()
|
302 |
st.write('Panoramic image size = ', image.size, ' format = ', image.format)
|
|
|
296 |
image = process_panorama(image_data['thumb_1024_url'])
|
297 |
image_bytes = BytesIO()
|
298 |
st.write('Resaving image size =', image.size, ' image format = ', image.format)
|
299 |
+
image.save(image_bytes, format='JPEG')
|
300 |
image = Image.open(image_bytes)
|
301 |
image_bytes = image_bytes.getvalue()
|
302 |
st.write('Panoramic image size = ', image.size, ' format = ', image.format)
|