mdanish commited on
Commit
635d678
·
verified ·
1 Parent(s): 95c4cb6

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=image.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)