sergioska commited on
Commit
73a8242
·
1 Parent(s): a61a460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -40,8 +40,8 @@ with col1:
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,7 +78,7 @@ with col1:
78
  gibsOk = True
79
  imageLocation.image(image)
80
  st.session_state['wip'] = True
81
- #st.session_state['image'] = image.__dict__
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: