Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def model():
|
|
| 20 |
outputs = model(**inputs)
|
| 21 |
|
| 22 |
# display image
|
| 23 |
-
st.image(
|
| 24 |
|
| 25 |
# convert outputs (bounding boxes and class logits) to Pascal VOC format (xmin, ymin, xmax, ymax)
|
| 26 |
target_sizes = torch.tensor([image.size[::-1]])
|
|
|
|
| 20 |
outputs = model(**inputs)
|
| 21 |
|
| 22 |
# display image
|
| 23 |
+
st.image(image, caption='Animal Images')
|
| 24 |
|
| 25 |
# convert outputs (bounding boxes and class logits) to Pascal VOC format (xmin, ymin, xmax, ymax)
|
| 26 |
target_sizes = torch.tensor([image.size[::-1]])
|