mdanish commited on
Commit
34315d4
·
1 Parent(s): c176b25
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -292,7 +292,7 @@ def main():
292
  try:
293
  if image_data['is_pano']:
294
  image = process_panorama(image_data['thumb_1024_url'])
295
- image_bytes = io.BytesIO()
296
  image.save(image_bytes, format=image.format)
297
  image_bytes = image_bytes.getvalue()
298
  else:
 
292
  try:
293
  if image_data['is_pano']:
294
  image = process_panorama(image_data['thumb_1024_url'])
295
+ image_bytes = BytesIO()
296
  image.save(image_bytes, format=image.format)
297
  image_bytes = image_bytes.getvalue()
298
  else: