AliSaria commited on
Commit
c79c64c
·
verified ·
1 Parent(s): 6774ffb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -13,10 +13,7 @@ def predict_and_visualize(img):
13
  # Store the original image size
14
  original_size = img.size
15
 
16
- # Convert the input image to the target size expected by the model
17
- img_resized = img.resize((256, 256))
18
- img_array = np.array(img_resized) / 255.0 # Normalize the image
19
- img_array = np.expand_dims(img_array, axis=0) # Add batch dimension
20
 
21
  # Make a prediction
22
  prediction = model.predict(img_array)
 
13
  # Store the original image size
14
  original_size = img.size
15
 
16
+
 
 
 
17
 
18
  # Make a prediction
19
  prediction = model.predict(img_array)