Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ if st.button('apply tag'):
|
|
| 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 |
-
imageLocation(image)
|
| 31 |
st.write(predictions)
|
| 32 |
|
| 33 |
if uploaded_image_zero_file is not None:
|
|
@@ -37,7 +37,7 @@ if uploaded_image_zero_file is not None:
|
|
| 37 |
image,
|
| 38 |
candidate_labels=['product']
|
| 39 |
)
|
| 40 |
-
imageLocation(outputImage)
|
| 41 |
|
| 42 |
|
| 43 |
|
|
|
|
| 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 |
+
imageLocation.image(image)
|
| 31 |
st.write(predictions)
|
| 32 |
|
| 33 |
if uploaded_image_zero_file is not None:
|
|
|
|
| 37 |
image,
|
| 38 |
candidate_labels=['product']
|
| 39 |
)
|
| 40 |
+
imageLocation.image(outputImage)
|
| 41 |
|
| 42 |
|
| 43 |
|