Commit
·
6dbcce6
1
Parent(s):
ac42b57
app updated
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def process_image_as_batch(path):
|
|
46 |
|
47 |
def predict_single_image(image, model, hp):
|
48 |
# Preprocess the image
|
49 |
-
preprocessed_image = process_image_as_batch(image
|
50 |
# Convert the preprocessed image to a TensorFlow tensor if needed
|
51 |
preprocessed_image = tf.convert_to_tensor(preprocessed_image)
|
52 |
# Add an extra batch dimension (required for model.predict)
|
|
|
46 |
|
47 |
def predict_single_image(image, model, hp):
|
48 |
# Preprocess the image
|
49 |
+
preprocessed_image = process_image_as_batch(image)
|
50 |
# Convert the preprocessed image to a TensorFlow tensor if needed
|
51 |
preprocessed_image = tf.convert_to_tensor(preprocessed_image)
|
52 |
# Add an extra batch dimension (required for model.predict)
|