lily-hust commited on
Commit
c1f5aa3
·
1 Parent(s): 117091c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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("my-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)
 
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)