Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,11 @@ 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 |
model = models.Sequential([
|
| 21 |
base_model,
|
| 22 |
layers.GlobalAveragePooling2D(),
|
|
|
|
| 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,
|
| 22 |
+
input_shape=(224, 224, 3)
|
| 23 |
+
)
|
| 24 |
model = models.Sequential([
|
| 25 |
base_model,
|
| 26 |
layers.GlobalAveragePooling2D(),
|