mscsasem3 commited on
Commit
4ece557
1 Parent(s): 3a2c356

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -405,8 +405,8 @@ def sim(Ideal_Answer,Submitted_Answer):
405
 
406
 
407
  def return_image_embedding(model,img_path):
408
- img = image.load_img(img_path, target_size=(224, 224))
409
- x = image.img_to_array(img)
410
  x = np.expand_dims(x, axis=0)
411
  x = preprocess_input(x)
412
  preds = model.predict(x)
 
405
 
406
 
407
  def return_image_embedding(model,img_path):
408
+ #img = image.load_img(img_path, target_size=(224, 224))
409
+ x = image.img_to_array(img_path)
410
  x = np.expand_dims(x, axis=0)
411
  x = preprocess_input(x)
412
  preds = model.predict(x)