Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ from PIL import Image
|
|
10 |
modelPath = download_model(BodyPixModelPaths.RESNET50_FLOAT_STRIDE_16)
|
11 |
bodypix_model = load_model(modelPath)
|
12 |
|
|
|
13 |
def predict(mask_threshold, image):
|
14 |
# get prediction result
|
15 |
image_array = tf.keras.preprocessing.image.img_to_array(image)
|
|
|
10 |
modelPath = download_model(BodyPixModelPaths.RESNET50_FLOAT_STRIDE_16)
|
11 |
bodypix_model = load_model(modelPath)
|
12 |
|
13 |
+
|
14 |
def predict(mask_threshold, image):
|
15 |
# get prediction result
|
16 |
image_array = tf.keras.preprocessing.image.img_to_array(image)
|