Spaces:
Sleeping
Sleeping
Update pages/Entorno de Ejecución.py
Browse files
pages/Entorno de Ejecución.py
CHANGED
@@ -81,8 +81,7 @@ with col_b:
|
|
81 |
st.write('Debe elegir un solo método: Ultra-Patacotrón o selección múltiple.')
|
82 |
elif uploaded_file is not None and len(selected_models) > 0 or ultra_flag:
|
83 |
# Load the image and resize it to the required dimensions
|
84 |
-
|
85 |
-
img = tf.io.decode_raw(uploaded_file.read(), tf.uint8)
|
86 |
raw_img = tf.image.decode_image(img, channels=3)
|
87 |
img = tf.image.resize(raw_img,(IMAGE_WIDTH, IMAGE_HEIGHT))
|
88 |
|
|
|
81 |
st.write('Debe elegir un solo método: Ultra-Patacotrón o selección múltiple.')
|
82 |
elif uploaded_file is not None and len(selected_models) > 0 or ultra_flag:
|
83 |
# Load the image and resize it to the required dimensions
|
84 |
+
img = tf.io.read_file(uploaded_file)
|
|
|
85 |
raw_img = tf.image.decode_image(img, channels=3)
|
86 |
img = tf.image.resize(raw_img,(IMAGE_WIDTH, IMAGE_HEIGHT))
|
87 |
|