DhominickJ commited on
Commit
a15433a
·
1 Parent(s): 5d44094

Adding back the photo

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -110,12 +110,12 @@ st.markdown("<p style='text-align: center; color: #05BFDB; font-size: 20px;'>Det
110
  col1, col2 = st.columns(2)
111
 
112
  # with col1:
113
- if st.button("📷 Detect Now!", use_container_width=True):
114
- st.session_state.input_method = "upload"
115
 
116
- # with col2:
117
- # if st.button("📤 Upload Image", use_container_width=True):
118
- # st.session_state.input_method = "upload"
119
 
120
  # Initialize session state
121
  if 'input_method' not in st.session_state:
 
110
  col1, col2 = st.columns(2)
111
 
112
  # with col1:
113
+ if st.button("📷 Take a Photo!", use_container_width=True):
114
+ st.session_state.input_method = "camera"
115
 
116
+ with col2:
117
+ if st.button("📤 Upload Image", use_container_width=True):
118
+ st.session_state.input_method = "upload"
119
 
120
  # Initialize session state
121
  if 'input_method' not in st.session_state: