Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ app.mount("/static", StaticFiles(directory="static"), name="static")
|
|
| 14 |
templates = Jinja2Templates(directory="templates")
|
| 15 |
|
| 16 |
# Open webcam (or use a file)
|
| 17 |
-
video_source =
|
| 18 |
cap = cv2.VideoCapture(video_source)
|
| 19 |
|
| 20 |
def generate_frames():
|
|
|
|
| 14 |
templates = Jinja2Templates(directory="templates")
|
| 15 |
|
| 16 |
# Open webcam (or use a file)
|
| 17 |
+
video_source = 1 # Change to "video.mp4" for a file
|
| 18 |
cap = cv2.VideoCapture(video_source)
|
| 19 |
|
| 20 |
def generate_frames():
|