sergioska commited on
Commit
3262d9a
·
1 Parent(s): 7a2b20e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -39,7 +39,7 @@ with col1:
39
 
40
  imageLocation = st.empty()
41
 
42
- if uploaded_image_zero_file is not None and not st.session_state['wip']:
43
  image = Image.open(uploaded_image_zero_file)
44
  outputImage = np.array(image)
45
  predictions = detector(
@@ -48,7 +48,7 @@ with col1:
48
  )
49
  imageLocation.image(outputImage)
50
 
51
- if st.button('detect') and not st.session_state['wip']:
52
 
53
  draw = ImageDraw.Draw(image)
54
 
@@ -72,7 +72,6 @@ with col1:
72
 
73
  totalGibs = i
74
  gibsOk = True
75
- st.session_state['wip'] = True
76
  imageLocation.image(image)
77
  st.write(predictions)
78
 
 
39
 
40
  imageLocation = st.empty()
41
 
42
+ if uploaded_image_zero_file is not None:
43
  image = Image.open(uploaded_image_zero_file)
44
  outputImage = np.array(image)
45
  predictions = detector(
 
48
  )
49
  imageLocation.image(outputImage)
50
 
51
+ if st.button('detect'):
52
 
53
  draw = ImageDraw.Draw(image)
54
 
 
72
 
73
  totalGibs = i
74
  gibsOk = True
 
75
  imageLocation.image(image)
76
  st.write(predictions)
77