mybYusuf commited on
Commit
7838f0b
·
verified ·
1 Parent(s): 88d4067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ with open('class_labels.json', 'r') as f:
13
 
14
  def preprocess_image(image):
15
  # Gradio'dan gelen görüntüyü işle
16
- image = cv2.resize(image, (96, 96)) # Model için kullandığımız boyuta getir
17
  image = image.astype('float32') / 255.0 # Normalize et
18
  return np.expand_dims(image, axis=0) # Batch boyutu ekle
19
 
 
13
 
14
  def preprocess_image(image):
15
  # Gradio'dan gelen görüntüyü işle
16
+ image = cv2.resize(image, (128,128)) # Model için kullandığımız boyuta getir
17
  image = image.astype('float32') / 255.0 # Normalize et
18
  return np.expand_dims(image, axis=0) # Batch boyutu ekle
19