Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,10 @@ img_width = 224
|
|
22 |
class_names = ['Palm', 'Others']
|
23 |
model = tf.keras.models.load_model('model')
|
24 |
|
25 |
-
with st.form("
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
if submitted and file is not None:
|
30 |
st.write("UPLOADED!")
|
31 |
st.image(uploaded_file, width=100)
|
|
|
22 |
class_names = ['Palm', 'Others']
|
23 |
model = tf.keras.models.load_model('model')
|
24 |
|
25 |
+
with st.form("form", clear_on_submit=True):
|
26 |
+
uploaded_file = st.file_uploader("Upload image files", type="jpg", accept_multiple_files=True)
|
27 |
+
submitted = st.form_submit_button("UPLOAD!")
|
28 |
+
|
29 |
if submitted and file is not None:
|
30 |
st.write("UPLOADED!")
|
31 |
st.image(uploaded_file, width=100)
|