Spaces:
Sleeping
Sleeping
Commit
·
4b15bf8
1
Parent(s):
80b6d82
remove image.open
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def process_image(pil_image):
|
|
102 |
---------
|
103 |
image: path of the image to be processed
|
104 |
"""
|
105 |
-
inp =
|
106 |
inp.load()
|
107 |
img_exif = inp.getexif()
|
108 |
|
@@ -210,7 +210,7 @@ def predict(pil_image, model=model, category_names=cat_to_name, topk=5):
|
|
210 |
|
211 |
# Plot Functionality
|
212 |
|
213 |
-
image =
|
214 |
fig, (ax1, ax2) = plt.subplots(ncols=2)
|
215 |
ax1.imshow(image)
|
216 |
ax1.axis("off")
|
|
|
102 |
---------
|
103 |
image: path of the image to be processed
|
104 |
"""
|
105 |
+
inp = pil_image
|
106 |
inp.load()
|
107 |
img_exif = inp.getexif()
|
108 |
|
|
|
210 |
|
211 |
# Plot Functionality
|
212 |
|
213 |
+
image = pil_image
|
214 |
fig, (ax1, ax2) = plt.subplots(ncols=2)
|
215 |
ax1.imshow(image)
|
216 |
ax1.axis("off")
|