Spaces:
Sleeping
Sleeping
HashamUllah
commited on
Commit
•
2aecc48
1
Parent(s):
64014a4
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,11 @@ import io
|
|
6 |
import json
|
7 |
|
8 |
# Load categories
|
9 |
-
with open('
|
10 |
categories = json.load(f)
|
11 |
|
12 |
# Ensure the correct path
|
13 |
-
model_path = '
|
14 |
|
15 |
# Load the TensorFlow model
|
16 |
try:
|
|
|
6 |
import json
|
7 |
|
8 |
# Load categories
|
9 |
+
with open('categories.json') as f:
|
10 |
categories = json.load(f)
|
11 |
|
12 |
# Ensure the correct path
|
13 |
+
model_path = 'plant_disease_detection_model.h5'
|
14 |
|
15 |
# Load the TensorFlow model
|
16 |
try:
|