Spaces:
Running
Running
Update app.py
Browse files
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('
|
8 |
|
9 |
#yeni gelen resmi modelin girdi boyutuna uygun hale getirelim
|
10 |
def process_image(image):
|
11 |
-
image = image.resize((
|
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
|