Soumen commited on
Commit
ac52316
·
1 Parent(s): 2d7a659

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,11 +24,11 @@ print("RESNET MODEL LOADED")
24
  def load_image(img):
25
  im = Image.open(img)
26
  return im
27
- activities = ["Detection","About"]
28
  choice = st.sidebar.selectbox("Select Activty",activities)
29
  uploaded_photo = c2.file_uploader("Upload Image",type=['jpg','png','jpeg'], on_change=change_photo_state)
30
  camera_photo = c2.camera_input("Take a photo", on_change=change_photo_state)
31
- if choice == 'Detection':
32
  #st.subheader("Detection")
33
  if st.session_state["photo"]=="done":
34
  if uploaded_photo:
 
24
  def load_image(img):
25
  im = Image.open(img)
26
  return im
27
+ activities = ["Caption","About"]
28
  choice = st.sidebar.selectbox("Select Activty",activities)
29
  uploaded_photo = c2.file_uploader("Upload Image",type=['jpg','png','jpeg'], on_change=change_photo_state)
30
  camera_photo = c2.camera_input("Take a photo", on_change=change_photo_state)
31
+ if choice == 'Caption':
32
  #st.subheader("Detection")
33
  if st.session_state["photo"]=="done":
34
  if uploaded_photo: