Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -125,12 +125,12 @@ model = attempt_load(weight_path, map_location=torch.device('cpu')) # load FP32
|
|
125 |
|
126 |
"""
|
127 |
# YOLOv7
|
128 |
-
This is a object detection model for
|
129 |
"""
|
130 |
option = st.radio("", ["Upload Image", "Image URL"])
|
131 |
|
132 |
if option == "Upload Image":
|
133 |
-
uploaded_file = st.file_uploader("Please upload an
|
134 |
|
135 |
if uploaded_file is not None:
|
136 |
img = PILImage.create(uploaded_file)
|
|
|
125 |
|
126 |
"""
|
127 |
# YOLOv7
|
128 |
+
This is a object detection model for crosswalk.
|
129 |
"""
|
130 |
option = st.radio("", ["Upload Image", "Image URL"])
|
131 |
|
132 |
if option == "Upload Image":
|
133 |
+
uploaded_file = st.file_uploader("Please upload an crosswalk image.")
|
134 |
|
135 |
if uploaded_file is not None:
|
136 |
img = PILImage.create(uploaded_file)
|