Spaces:
Sleeping
Sleeping
Example Added
Browse files- .gitignore +2 -0
- app.py +7 -2
- example.jpeg +0 -0
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
|
2 |
+
.DS_Store
|
app.py
CHANGED
@@ -9,8 +9,13 @@ model = YOLO('yolov8n.pt')
|
|
9 |
|
10 |
# Streamlit app
|
11 |
def main():
|
12 |
-
st.title("Object Detection - General")
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
14 |
# Upload image
|
15 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
|
16 |
|
|
|
9 |
|
10 |
# Streamlit app
|
11 |
def main():
|
12 |
+
st.title("Object Detection - General Use")
|
13 |
+
st.write("This is a general use object detection space using YOLOv8")
|
14 |
+
st.header("Example Result")
|
15 |
+
# Display the example result image
|
16 |
+
example_image = Image.open("example.jpeg")
|
17 |
+
st.image(example_image, caption='Cars are picked out in green and the person is distinguished from the motorcycle', use_column_width=True)
|
18 |
+
st.header("Upload an Image")
|
19 |
# Upload image
|
20 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
|
21 |
|
example.jpeg
ADDED
![]() |