BunkerMinecraft commited on
Commit
4eef904
·
verified ·
1 Parent(s): 439147a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -16,6 +16,7 @@ if os.path.exists("config.json"):
16
  class_names = ['battery', 'glass', 'metal', 'organic', 'paper', 'plastic']
17
 
18
  # ---- Build model architecture ----
 
19
  base_model = tf.keras.applications.EfficientNetB7(
20
  weights=None,
21
  include_top=False,
@@ -30,6 +31,8 @@ model = models.Sequential([
30
  layers.Dropout(0.3),
31
  layers.Dense(6, activation='softmax')
32
  ])
 
 
33
 
34
  # ---- Load trained weights ----
35
  if os.path.exists("model_weights.h5"):
 
16
  class_names = ['battery', 'glass', 'metal', 'organic', 'paper', 'plastic']
17
 
18
  # ---- Build model architecture ----
19
+ '''
20
  base_model = tf.keras.applications.EfficientNetB7(
21
  weights=None,
22
  include_top=False,
 
31
  layers.Dropout(0.3),
32
  layers.Dense(6, activation='softmax')
33
  ])
34
+ '''
35
+ model = tf.keras.models.load_model("model_weights.h5")
36
 
37
  # ---- Load trained weights ----
38
  if os.path.exists("model_weights.h5"):