Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -135,11 +135,11 @@ if app_mode == SIDEBAR_OPTION_DEMO_IMAGE:
|
|
135 |
colour = (40, 96, 219)
|
136 |
else:
|
137 |
colour = (249, 223, 2)
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
|
144 |
elif app_mode == SIDEBAR_OPTION_UPLOAD_IMAGE:
|
145 |
uploaded_file = st.file_uploader("Choose an image...")
|
|
|
135 |
colour = (40, 96, 219)
|
136 |
else:
|
137 |
colour = (249, 223, 2)
|
138 |
+
pressed = st.sidebar.button('PoP')
|
139 |
+
if pressed:
|
140 |
+
st.empty()
|
141 |
+
st.sidebar.write('Please wait for the magic to happen! This may take up to a minute.')
|
142 |
+
predict(option,colour)
|
143 |
|
144 |
elif app_mode == SIDEBAR_OPTION_UPLOAD_IMAGE:
|
145 |
uploaded_file = st.file_uploader("Choose an image...")
|