metehanayhan commited on
Commit
1aefc4e
·
verified ·
1 Parent(s): beaa1b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,11 +4,11 @@ from PIL import Image
4
  import numpy as np
5
 
6
  # Load the model
7
- model = load_model('my_model.keras')
8
 
9
  #yeni gelen resmi modelin girdi boyutuna uygun hale getirelim
10
  def process_image(image):
11
- image = image.resize((224,224))
12
  image = np.array(image)
13
  image = image / 255.0
14
  image = np.expand_dims(image, axis=0) # burada modelin beklediği gibi bir girdi oluşturduk
 
4
  import numpy as np
5
 
6
  # Load the model
7
+ model = load_model('my_cnn_model.h5')
8
 
9
  #yeni gelen resmi modelin girdi boyutuna uygun hale getirelim
10
  def process_image(image):
11
+ image = image.resize((170,170))
12
  image = np.array(image)
13
  image = image / 255.0
14
  image = np.expand_dims(image, axis=0) # burada modelin beklediği gibi bir girdi oluşturduk