Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import tensorflow as tf
|
|
4 |
from tensorflow.keras.models import load_model
|
5 |
|
6 |
# Load your trained pain classification model
|
7 |
-
model = load_model("
|
8 |
|
9 |
def predict(image):
|
10 |
# Resize the image to the expected input size of (148, 148)
|
|
|
4 |
from tensorflow.keras.models import load_model
|
5 |
|
6 |
# Load your trained pain classification model
|
7 |
+
model = load_model("pain_analysis.h5") # Adjust the path as necessary
|
8 |
|
9 |
def predict(image):
|
10 |
# Resize the image to the expected input size of (148, 148)
|