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