Spaces:
Build error
Build error
Sophie98
commited on
Commit
•
6048967
1
Parent(s):
50a2182
typo
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def fix_orient(img: Image.Image) -> Image.Image:
|
|
12 |
for orientation in ExifTags.TAGS.keys():
|
13 |
if ExifTags.TAGS[orientation]=='Orientation':
|
14 |
break
|
15 |
-
info=img.
|
16 |
if (info):
|
17 |
info = dict(info.items())
|
18 |
orientation = info[orientation]
|
|
|
12 |
for orientation in ExifTags.TAGS.keys():
|
13 |
if ExifTags.TAGS[orientation]=='Orientation':
|
14 |
break
|
15 |
+
info=img.getexif()
|
16 |
if (info):
|
17 |
info = dict(info.items())
|
18 |
orientation = info[orientation]
|