Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,8 +37,10 @@ with col1:
|
|
| 37 |
st.header('flyer')
|
| 38 |
uploaded_image_zero_file = st.file_uploader("Choose an image file (zero)")
|
| 39 |
|
| 40 |
-
if st.session_state['wip']:
|
| 41 |
imageLocation = st.empty()
|
|
|
|
|
|
|
| 42 |
|
| 43 |
if uploaded_image_zero_file is not None:
|
| 44 |
image = Image.open(uploaded_image_zero_file)
|
|
@@ -74,7 +76,7 @@ with col1:
|
|
| 74 |
totalGibs = i
|
| 75 |
gibsOk = True
|
| 76 |
imageLocation.image(image)
|
| 77 |
-
st.session_state['image'] = image
|
| 78 |
st.write(predictions)
|
| 79 |
|
| 80 |
with col2:
|
|
|
|
| 37 |
st.header('flyer')
|
| 38 |
uploaded_image_zero_file = st.file_uploader("Choose an image file (zero)")
|
| 39 |
|
| 40 |
+
if not st.session_state['wip']:
|
| 41 |
imageLocation = st.empty()
|
| 42 |
+
else:
|
| 43 |
+
imageLocation = st.image(st.session_state['image'])
|
| 44 |
|
| 45 |
if uploaded_image_zero_file is not None:
|
| 46 |
image = Image.open(uploaded_image_zero_file)
|
|
|
|
| 76 |
totalGibs = i
|
| 77 |
gibsOk = True
|
| 78 |
imageLocation.image(image)
|
| 79 |
+
st.session_state['image'] = image.__dict__
|
| 80 |
st.write(predictions)
|
| 81 |
|
| 82 |
with col2:
|