Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,11 +71,10 @@ images_means = {148.5175: '1205045288117020016.npy',
|
|
| 71 |
def predict(ash_image, model=model):
|
| 72 |
#label = np.load(label_image)
|
| 73 |
# ash_image = np.load('images/552609781892851211.npy')
|
| 74 |
-
|
| 75 |
-
print(ash_image)
|
| 76 |
im = np.asarray(Image.open(ash_image))
|
| 77 |
im_mean = round(im.mean(),4)
|
| 78 |
-
|
| 79 |
if im_mean in images_means:
|
| 80 |
im = np.load('numpy_files/' + images_means[im_mean])
|
| 81 |
|
|
|
|
| 71 |
def predict(ash_image, model=model):
|
| 72 |
#label = np.load(label_image)
|
| 73 |
# ash_image = np.load('images/552609781892851211.npy')
|
| 74 |
+
|
|
|
|
| 75 |
im = np.asarray(Image.open(ash_image))
|
| 76 |
im_mean = round(im.mean(),4)
|
| 77 |
+
|
| 78 |
if im_mean in images_means:
|
| 79 |
im = np.load('numpy_files/' + images_means[im_mean])
|
| 80 |
|