Spaces:
Running
Running
Update app.py
Browse files
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 = ["
|
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 == '
|
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:
|