Towhidul commited on
Commit
0fb28e8
1 Parent(s): ab5bda2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
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
- row = df.iloc[0]
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'),