Apex-X commited on
Commit
28f1a2b
·
verified ·
1 Parent(s): 9646a7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -14,6 +14,9 @@ labels = {name: index for index, name in enumerate(classes)}
14
  num_classes = len(classes)
15
 
16
  # Load the model
 
 
 
17
  model_path = 'sketch_recognition_model_cnn.h5' # Ensure this path is correct
18
  try:
19
  model = load_model(model_path)
 
14
  num_classes = len(classes)
15
 
16
  # Load the model
17
+
18
+ from keras.models import load_model
19
+
20
  model_path = 'sketch_recognition_model_cnn.h5' # Ensure this path is correct
21
  try:
22
  model = load_model(model_path)