Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,10 @@ import io
|
|
6 |
import json
|
7 |
|
8 |
# Load the TensorFlow model
|
9 |
-
model = tf.keras.models.load_model('
|
10 |
|
11 |
# Load categories
|
12 |
-
with open('
|
13 |
categories = json.load(f)
|
14 |
|
15 |
def preprocess_image(image):
|
|
|
6 |
import json
|
7 |
|
8 |
# Load the TensorFlow model
|
9 |
+
model = tf.keras.models.load_model('plant_disease_detection.h5')
|
10 |
|
11 |
# Load categories
|
12 |
+
with open('categories.json') as f:
|
13 |
categories = json.load(f)
|
14 |
|
15 |
def preprocess_image(image):
|