neelsahu commited on
Commit
dcecd32
·
1 Parent(s): 4d69047

unkown error from hugging face

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -12,9 +12,6 @@ face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
12
  # Load the pre-trained model
13
  model = load_model('my_model.h5')
14
  def classify_image(img):
15
- #print("image : ",type(img))
16
- #image_array = img_to_array(image)
17
- #print("image shape: ",img.shape)
18
  img_copy = img
19
  height, width = img_copy.shape[0], img_copy.shape[1]
20
 
@@ -42,7 +39,6 @@ def classify_image(img):
42
  img = image.img_to_array(img)
43
  img = np.expand_dims(img, axis=0)
44
  img /= 255.0
45
- print(model.predict(img))
46
  # Use the model to make a prediction
47
  prediction = model.predict(img)[0]
48
  # Map the predicted class to a label
 
12
  # Load the pre-trained model
13
  model = load_model('my_model.h5')
14
  def classify_image(img):
 
 
 
15
  img_copy = img
16
  height, width = img_copy.shape[0], img_copy.shape[1]
17
 
 
39
  img = image.img_to_array(img)
40
  img = np.expand_dims(img, axis=0)
41
  img /= 255.0
 
42
  # Use the model to make a prediction
43
  prediction = model.predict(img)[0]
44
  # Map the predicted class to a label