Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -207,7 +207,7 @@ if st.session_state.screen == 2:
|
|
| 207 |
st.session_state.image_counter += 1
|
| 208 |
|
| 209 |
# predictions
|
| 210 |
-
if 'results' not in st.session_state or st.session_state.results
|
| 211 |
st.write("The model is working. Please be patient...")
|
| 212 |
st.write("This process takes around 30 seconds.")
|
| 213 |
st.session_state.results = st.session_state.model.predict(st.session_state.tiles, conf=st.session_state.confidence) # predict
|
|
|
|
| 207 |
st.session_state.image_counter += 1
|
| 208 |
|
| 209 |
# predictions
|
| 210 |
+
if 'results' not in st.session_state or st.session_state.results == None:
|
| 211 |
st.write("The model is working. Please be patient...")
|
| 212 |
st.write("This process takes around 30 seconds.")
|
| 213 |
st.session_state.results = st.session_state.model.predict(st.session_state.tiles, conf=st.session_state.confidence) # predict
|