Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ st.title('Upload an image file to detection')
|
|
| 12 |
|
| 13 |
uploaded_image_zero_file = st.file_uploader("Choose an image file (zero)")
|
| 14 |
|
|
|
|
| 15 |
if st.button('apply tag'):
|
| 16 |
tags = [['products', 'price', 'title']]
|
| 17 |
|
|
@@ -26,7 +27,6 @@ if st.button('apply tag'):
|
|
| 26 |
draw.rectangle((xmin, ymin, xmax, ymax), outline="red", width=3)
|
| 27 |
draw.text((xmin, ymin), f"{label}: {round(score,5)}", fill="white")
|
| 28 |
|
| 29 |
-
st.empty()
|
| 30 |
st.image(image)
|
| 31 |
st.write(predictions)
|
| 32 |
|
|
|
|
| 12 |
|
| 13 |
uploaded_image_zero_file = st.file_uploader("Choose an image file (zero)")
|
| 14 |
|
| 15 |
+
image = None
|
| 16 |
if st.button('apply tag'):
|
| 17 |
tags = [['products', 'price', 'title']]
|
| 18 |
|
|
|
|
| 27 |
draw.rectangle((xmin, ymin, xmax, ymax), outline="red", width=3)
|
| 28 |
draw.text((xmin, ymin), f"{label}: {round(score,5)}", fill="white")
|
| 29 |
|
|
|
|
| 30 |
st.image(image)
|
| 31 |
st.write(predictions)
|
| 32 |
|