Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
@@ -105,7 +105,8 @@ st.write("Detect whether a person is wearing a face mask or not.")
|
|
105 |
option = st.radio("Select Input Method", ["Upload Image", "Image URL"])
|
106 |
|
107 |
if option == "Upload Image":
|
108 |
-
uploaded_file = st.file_uploader("Please upload an image."
|
|
|
109 |
if uploaded_file is not None:
|
110 |
img = PILImage.create(uploaded_file)
|
111 |
detect_modify(img, model, device, conf=conf, imgsz=imgsz, conf_thres=conf_thres, iou_thres=iou_thres)
|
|
|
105 |
option = st.radio("Select Input Method", ["Upload Image", "Image URL"])
|
106 |
|
107 |
if option == "Upload Image":
|
108 |
+
uploaded_file = st.file_uploader("Please upload an image.")
|
109 |
+
|
110 |
if uploaded_file is not None:
|
111 |
img = PILImage.create(uploaded_file)
|
112 |
detect_modify(img, model, device, conf=conf, imgsz=imgsz, conf_thres=conf_thres, iou_thres=iou_thres)
|