Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
|
5 |
def bone_frac(img):
|
6 |
img = cv2.resize(img,(224,224))
|
7 |
-
model = tf.keras.models.load_model(
|
8 |
result = model.predict(np.array([img]))
|
9 |
op=""
|
10 |
if result[0]<0.5:
|
|
|
4 |
|
5 |
def bone_frac(img):
|
6 |
img = cv2.resize(img,(224,224))
|
7 |
+
model = tf.keras.models.load_model("best_model.h5")
|
8 |
result = model.predict(np.array([img]))
|
9 |
op=""
|
10 |
if result[0]<0.5:
|