Spaces:
Build error
Build error
Commit ·
a15433a
1
Parent(s): 5d44094
Adding back the photo
Browse files
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("📷
|
| 114 |
-
st.session_state.input_method = "
|
| 115 |
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 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:
|