Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -297,6 +297,7 @@ def main():
|
|
| 297 |
image_bytes = BytesIO()
|
| 298 |
image.save(image_bytes, format=image.format)
|
| 299 |
image_bytes = image_bytes.getvalue()
|
|
|
|
| 300 |
else:
|
| 301 |
response = requests.get(image_data['thumb_1024_url'])
|
| 302 |
image = Image.open(BytesIO(response.content))
|
|
|
|
| 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:
|
| 302 |
response = requests.get(image_data['thumb_1024_url'])
|
| 303 |
image = Image.open(BytesIO(response.content))
|