Spaces:
Runtime error
Runtime error
Commit
•
1c0ab62
1
Parent(s):
18b038a
Updated app.py
Browse files
app.py
CHANGED
@@ -47,16 +47,13 @@ def main(options):
|
|
47 |
|
48 |
|
49 |
with col1:
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
st.
|
57 |
-
c02_state=st.session_state.c02
|
58 |
-
c02_state=st.sidebar.checkbox('Detect',value=c02_state)
|
59 |
-
if c01_state:
|
60 |
|
61 |
with col1:
|
62 |
image, original_image= upload()
|
@@ -65,7 +62,7 @@ def main(options):
|
|
65 |
# Check if original_image is not None
|
66 |
pass
|
67 |
st.session_state.c02=c02_state
|
68 |
-
|
69 |
with col2:
|
70 |
st.warning('Wait for few seconds!!')
|
71 |
progress_bar = st.progress(0.0)
|
|
|
47 |
|
48 |
|
49 |
with col1:
|
50 |
+
|
51 |
+
|
52 |
+
if st.checkbox('Take a picture for prediction'):
|
53 |
+
if 'c02' not in st.session_state:
|
54 |
+
st.session_state.c02=False
|
55 |
+
c02_state=st.session_state.c02
|
56 |
+
c02_state=st.sidebar.checkbox('Detect',value=c02_state)
|
|
|
|
|
|
|
57 |
|
58 |
with col1:
|
59 |
image, original_image= upload()
|
|
|
62 |
# Check if original_image is not None
|
63 |
pass
|
64 |
st.session_state.c02=c02_state
|
65 |
+
|
66 |
with col2:
|
67 |
st.warning('Wait for few seconds!!')
|
68 |
progress_bar = st.progress(0.0)
|