Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
import tensorflow as tf
|
4 |
|
5 |
# Assuming your model is loaded here
|
6 |
-
|
7 |
|
8 |
def predict(image):
|
9 |
image = np.array(image) / 255.0 # Normalize the image
|
|
|
3 |
import tensorflow as tf
|
4 |
|
5 |
# Assuming your model is loaded here
|
6 |
+
model = tf.keras.models.load_model("pain_analysis.h5")
|
7 |
|
8 |
def predict(image):
|
9 |
image = np.array(image) / 255.0 # Normalize the image
|