Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,25 +15,9 @@ img_height,img_width=180,180
|
|
15 |
|
16 |
model_flower = keras.models.load_model('model_flower.h5')
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
model = Sequential([
|
22 |
-
layers.experimental.preprocessing.Rescaling(1./255, input_shape=(img_height, img_width, 3)),
|
23 |
-
layers.Conv2D(16, 3, padding='same', activation='relu'),
|
24 |
-
layers.MaxPooling2D(),
|
25 |
-
layers.Conv2D(32, 3, padding='same', activation='relu'),
|
26 |
-
layers.MaxPooling2D(),
|
27 |
-
layers.Conv2D(64, 3, padding='same', activation='relu'),
|
28 |
-
layers.MaxPooling2D(),
|
29 |
-
layers.Flatten(),
|
30 |
-
layers.Dense(128, activation='relu'),
|
31 |
-
layers.Dense(num_classes,activation='softmax')
|
32 |
-
])
|
33 |
-
|
34 |
-
model.compile(optimizer='adam',
|
35 |
-
loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
|
36 |
-
metrics=['accuracy'])
|
37 |
|
38 |
|
39 |
|
|
|
15 |
|
16 |
model_flower = keras.models.load_model('model_flower.h5')
|
17 |
|
18 |
+
|
19 |
+
|
20 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
|
23 |
|