Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import numpy as np
|
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
# Load the trained model
|
| 7 |
-
model = tf.keras.models.load_model('
|
| 8 |
|
| 9 |
# Get class names from the training data generator (assuming 'train' is still in scope from previous execution)
|
| 10 |
# If 'train' is not in scope, you would need to define class_indices manually or reload data generators.
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
# Load the trained model
|
| 7 |
+
model = tf.keras.models.load_model('brain_tumor_classifier.keras')
|
| 8 |
|
| 9 |
# Get class names from the training data generator (assuming 'train' is still in scope from previous execution)
|
| 10 |
# If 'train' is not in scope, you would need to define class_indices manually or reload data generators.
|