Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,10 @@ validation_generator = test_datagen.flow_from_directory(
|
|
34 |
base_model = MobileNetV2(weights='imagenet', include_top=False, input_shape=(150, 150, 3))
|
35 |
base_model.trainable = False # Freeze the base model
|
36 |
|
37 |
-
model = models.Sequential([
|
38 |
base_model,
|
39 |
layers.GlobalAveragePooling2D(),
|
40 |
-
layers.Dense(
|
41 |
layers.Dense(len(labels), activation='softmax')
|
42 |
])
|
43 |
|
|
|
34 |
base_model = MobileNetV2(weights='imagenet', include_top=False, input_shape=(150, 150, 3))
|
35 |
base_model.trainable = False # Freeze the base model
|
36 |
|
37 |
+
model = tf.keras.models.Sequential([
|
38 |
base_model,
|
39 |
layers.GlobalAveragePooling2D(),
|
40 |
+
layers.Dense(1024, activation='relu'),
|
41 |
layers.Dense(len(labels), activation='softmax')
|
42 |
])
|
43 |
|