Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def F1_score(y_true, y_pred):
|
|
| 37 |
return f1_val
|
| 38 |
|
| 39 |
|
| 40 |
-
model = load_model(r"
|
| 41 |
|
| 42 |
def med_image_recog(img_path):
|
| 43 |
img = cv2.imread(img_path)
|
|
|
|
| 37 |
return f1_val
|
| 38 |
|
| 39 |
|
| 40 |
+
model = load_model(r"Model/Model.h5", custom_objects={"F1_score": f1_score})
|
| 41 |
|
| 42 |
def med_image_recog(img_path):
|
| 43 |
img = cv2.imread(img_path)
|