Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,7 @@ img_width = 224
|
|
22 |
class_names = ['Palm', 'Others']
|
23 |
|
24 |
model = tf.keras.models.load_model('model')
|
|
|
25 |
|
26 |
with st.form("list", clear_on_submit=True):
|
27 |
uploaded_file = st.file_uploader("Upload image files", type="jpg", accept_multiple_files=True)
|
@@ -29,7 +30,7 @@ with st.form("list", clear_on_submit=True):
|
|
29 |
st.image(uploaded_file, width=100)
|
30 |
|
31 |
if uploaded_file is not None:
|
32 |
-
|
33 |
if Generate_pred:
|
34 |
for file in uploaded_file:
|
35 |
img = Image.open(file)
|
|
|
22 |
class_names = ['Palm', 'Others']
|
23 |
|
24 |
model = tf.keras.models.load_model('model')
|
25 |
+
Generate_pred = st.button("Generate Prediction")
|
26 |
|
27 |
with st.form("list", clear_on_submit=True):
|
28 |
uploaded_file = st.file_uploader("Upload image files", type="jpg", accept_multiple_files=True)
|
|
|
30 |
st.image(uploaded_file, width=100)
|
31 |
|
32 |
if uploaded_file is not None:
|
33 |
+
|
34 |
if Generate_pred:
|
35 |
for file in uploaded_file:
|
36 |
img = Image.open(file)
|