s1ri1337 commited on
Commit
4a972f6
1 Parent(s): 6dd2514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -23,6 +23,7 @@ def run_model(img):
23
  #img_path = '/content/Indian/9/1020.jpg'
24
  #new_image = load_image(img_path)
25
  #result = model.predict(new_image)
 
26
  img = img.reshape((-1, 224, 224, 3))
27
  result = model.predict(img)
28
  results = dict(zip(classes, result[0]))
 
23
  #img_path = '/content/Indian/9/1020.jpg'
24
  #new_image = load_image(img_path)
25
  #result = model.predict(new_image)
26
+ classes = ['1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
27
  img = img.reshape((-1, 224, 224, 3))
28
  result = model.predict(img)
29
  results = dict(zip(classes, result[0]))