Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,8 +40,8 @@ with col1:
|
|
| 40 |
|
| 41 |
if not st.session_state['wip']:
|
| 42 |
imageLocation = st.empty()
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
if uploaded_image_zero_file is not None:
|
| 47 |
image = Image.open(uploaded_image_zero_file)
|
|
@@ -78,7 +78,7 @@ with col1:
|
|
| 78 |
gibsOk = True
|
| 79 |
imageLocation.image(image)
|
| 80 |
st.session_state['wip'] = True
|
| 81 |
-
|
| 82 |
st.write(predictions)
|
| 83 |
|
| 84 |
with col2:
|
|
|
|
| 40 |
|
| 41 |
if not st.session_state['wip']:
|
| 42 |
imageLocation = st.empty()
|
| 43 |
+
else:
|
| 44 |
+
imageLocation = st.image(st.session_state['image'])
|
| 45 |
|
| 46 |
if uploaded_image_zero_file is not None:
|
| 47 |
image = Image.open(uploaded_image_zero_file)
|
|
|
|
| 78 |
gibsOk = True
|
| 79 |
imageLocation.image(image)
|
| 80 |
st.session_state['wip'] = True
|
| 81 |
+
st.session_state['image'] = image
|
| 82 |
st.write(predictions)
|
| 83 |
|
| 84 |
with col2:
|