Update app.py
Browse files
app.py
CHANGED
|
@@ -19,11 +19,11 @@ with st.sidebar:
|
|
| 19 |
|
| 20 |
st.sidebar.image("logo.png", use_column_width=True)
|
| 21 |
# Process video
|
| 22 |
-
if st.button('Start'):
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
| 28 |
|
| 29 |
# Load Model YOLOv9
|
|
|
|
| 19 |
|
| 20 |
st.sidebar.image("logo.png", use_column_width=True)
|
| 21 |
# Process video
|
| 22 |
+
if st.button('Start'):
|
| 23 |
+
if video == 'YouTube' and link_youtube:
|
| 24 |
+
process_video(link_youtube, model)
|
| 25 |
+
elif video == 'Webcam':
|
| 26 |
+
process_video('Webcam', model)
|
| 27 |
|
| 28 |
|
| 29 |
# Load Model YOLOv9
|