Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,15 +53,10 @@ def image_resize(data):
|
|
53 |
if file is not None:
|
54 |
df = pd.read_csv(file)
|
55 |
# Get first row
|
56 |
-
|
57 |
-
|
58 |
-
# Load image
|
59 |
-
# image = np.array(Image.open(row[0]))
|
60 |
-
# Reshape
|
61 |
-
img_reshaped = image_resize(row)
|
62 |
|
63 |
# Get prediction
|
64 |
-
pred = model.predict(img_reshaped)
|
65 |
label = np.argmax(pred)
|
66 |
|
67 |
label_map = {4: ('nv', ' melanocytic nevi'),
|
|
|
53 |
if file is not None:
|
54 |
df = pd.read_csv(file)
|
55 |
# Get first row
|
56 |
+
img_reshaped = image_resize(df)
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
# Get prediction
|
59 |
+
pred = model.predict(img_reshaped[0])
|
60 |
label = np.argmax(pred)
|
61 |
|
62 |
label_map = {4: ('nv', ' melanocytic nevi'),
|