Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -232,7 +232,8 @@ if st.session_state.screen == 2:
|
|
| 232 |
if 'results' not in st.session_state:
|
| 233 |
st.write("The model is working. Please be patient...")
|
| 234 |
st.write("This process takes around 30 seconds.")
|
| 235 |
-
st.session_state.results = st.session_state.model.predict(tiles, conf=0.5) # predict
|
|
|
|
| 236 |
|
| 237 |
# plot predicted image
|
| 238 |
im_bgr = st.session_state.results[st.session_state.image_counter].plot() # BGR-order numpy array
|
|
|
|
| 232 |
if 'results' not in st.session_state:
|
| 233 |
st.write("The model is working. Please be patient...")
|
| 234 |
st.write("This process takes around 30 seconds.")
|
| 235 |
+
st.session_state.results = st.session_state.model.predict(tiles, conf=0.5) # predict
|
| 236 |
+
st.rerun()
|
| 237 |
|
| 238 |
# plot predicted image
|
| 239 |
im_bgr = st.session_state.results[st.session_state.image_counter].plot() # BGR-order numpy array
|