Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ with col1:
|
|
| 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,7 +48,7 @@ with col1:
|
|
| 48 |
)
|
| 49 |
imageLocation.image(outputImage)
|
| 50 |
|
| 51 |
-
if st.button('detect')
|
| 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 |
|