Hemant0000 commited on
Commit
8e81ff2
·
verified ·
1 Parent(s): 83ec173

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(128, activation='relu'),
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