Skip to content

Commit

Permalink
Addresses minor pylint issues
Browse files Browse the repository at this point in the history
Co-authored-by: Amy Jordan <amy_jordan@live.co.uk>
Co-authored-by: Kim Diep <kim.diep.techno@gmail.com>
  • Loading branch information
amyj0rdan and kimdiep committed May 21, 2019
1 parent ac2154d commit 20972fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ def __init__(self, image):
self.image = image

def reshape(self):
img = (self.image).resize((28,28)).convert('L')
img = (self.image).resize((28, 28)).convert('L')
np_img = np.array(img)
np_img = np.expand_dims(np_img, axis=0)
np_img = np.reshape(np_img, (28,28,1))
np_img = np.reshape(np_img, (28, 28, 1))
np_img = normalize(np_img)
return np_img
2 changes: 1 addition & 1 deletion lib/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Prediction():
def __init__(self, drawing):
self.drawing= drawing
self.drawing = drawing

def predict(self):
model = load_model("./models/first_model_training.h5")
Expand Down

0 comments on commit 20972fd

Please sign in to comment.