Update app.py
Browse files
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(
|
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)
|