dfdfd
Browse files
app.py
CHANGED
|
@@ -84,12 +84,12 @@ def predict_image(name_image):
|
|
| 84 |
from PIL import Image
|
| 85 |
#file_name = st.file_uploader("Upload a hot dog candidate image")
|
| 86 |
file_name = st.file_uploader("Carregue uma imagem:")
|
| 87 |
-
image_hf = Image.open(file_name
|
| 88 |
|
| 89 |
-
col1.header(file_name
|
| 90 |
col1.image(image_hf, width=450)
|
| 91 |
|
| 92 |
-
img = img_orig = image.load_img(file_name
|
| 93 |
img = image.img_to_array(img)
|
| 94 |
img = np.expand_dims(img, axis = 0)
|
| 95 |
img = img/255.0
|
|
|
|
| 84 |
from PIL import Image
|
| 85 |
#file_name = st.file_uploader("Upload a hot dog candidate image")
|
| 86 |
file_name = st.file_uploader("Carregue uma imagem:")
|
| 87 |
+
image_hf = Image.open(file_name)
|
| 88 |
|
| 89 |
+
col1.header(file_name)
|
| 90 |
col1.image(image_hf, width=450)
|
| 91 |
|
| 92 |
+
img = img_orig = image.load_img(file_name, target_size = (IMAGE_HEIGHT, IMAGE_WIDTH))
|
| 93 |
img = image.img_to_array(img)
|
| 94 |
img = np.expand_dims(img, axis = 0)
|
| 95 |
img = img/255.0
|