Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ with gr.Blocks() as demo:
|
|
| 87 |
|
| 88 |
|
| 89 |
def video_change(v, vc):
|
| 90 |
-
if vc
|
| 91 |
vc.release()
|
| 92 |
vc = cv.VideoCapture(v)
|
| 93 |
fps = vc.get(cv.CAP_PROP_FPS)
|
|
|
|
| 87 |
|
| 88 |
|
| 89 |
def video_change(v, vc):
|
| 90 |
+
if vc:
|
| 91 |
vc.release()
|
| 92 |
vc = cv.VideoCapture(v)
|
| 93 |
fps = vc.get(cv.CAP_PROP_FPS)
|