Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,15 +156,15 @@ task_type = st.sidebar.selectbox(
|
|
| 156 |
confidence = float(st.sidebar.slider(
|
| 157 |
"Select Model Confidence", 30, 100, 50)) / 100
|
| 158 |
|
|
|
|
|
|
|
| 159 |
# image/video options
|
| 160 |
st.sidebar.header("Image/Video Config")
|
| 161 |
source_selectbox = st.sidebar.selectbox(
|
| 162 |
"Select Source",
|
| 163 |
-
|
| 164 |
)
|
| 165 |
|
| 166 |
-
SOURCES_LIST = ["Video", "Webcam"]
|
| 167 |
-
|
| 168 |
source_img = None
|
| 169 |
#if source_selectbox == config.SOURCES_LIST[0]: # Image
|
| 170 |
# infer_uploaded_image(confidence, model)
|
|
|
|
| 156 |
confidence = float(st.sidebar.slider(
|
| 157 |
"Select Model Confidence", 30, 100, 50)) / 100
|
| 158 |
|
| 159 |
+
SOURCES_LIST = ["Video", "Webcam"]
|
| 160 |
+
|
| 161 |
# image/video options
|
| 162 |
st.sidebar.header("Image/Video Config")
|
| 163 |
source_selectbox = st.sidebar.selectbox(
|
| 164 |
"Select Source",
|
| 165 |
+
SOURCES_LIST
|
| 166 |
)
|
| 167 |
|
|
|
|
|
|
|
| 168 |
source_img = None
|
| 169 |
#if source_selectbox == config.SOURCES_LIST[0]: # Image
|
| 170 |
# infer_uploaded_image(confidence, model)
|