Spaces:
Build error
Build error
Ubuntu
commited on
Commit
·
17c9603
1
Parent(s):
a3c87e3
- .ipynb_checkpoints/app-checkpoint.py +2 -1
- app.py +2 -1
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -6,7 +6,8 @@ import torch
|
|
| 6 |
|
| 7 |
def video_identity(filepath):
|
| 8 |
vid = EncodedVideo.from_path(filepath)
|
| 9 |
-
|
|
|
|
| 10 |
capture = cv2.VideoCapture('out.mp4')
|
| 11 |
while (True):
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
def video_identity(filepath):
|
| 8 |
vid = EncodedVideo.from_path(filepath)
|
| 9 |
+
video_arr = np.asarray(vid)
|
| 10 |
+
write_video('out.mp4', video_arr, fps=60)
|
| 11 |
capture = cv2.VideoCapture('out.mp4')
|
| 12 |
while (True):
|
| 13 |
|
app.py
CHANGED
|
@@ -6,7 +6,8 @@ import torch
|
|
| 6 |
|
| 7 |
def video_identity(filepath):
|
| 8 |
vid = EncodedVideo.from_path(filepath)
|
| 9 |
-
|
|
|
|
| 10 |
capture = cv2.VideoCapture('out.mp4')
|
| 11 |
while (True):
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
def video_identity(filepath):
|
| 8 |
vid = EncodedVideo.from_path(filepath)
|
| 9 |
+
video_arr = np.asarray(vid)
|
| 10 |
+
write_video('out.mp4', video_arr, fps=60)
|
| 11 |
capture = cv2.VideoCapture('out.mp4')
|
| 12 |
while (True):
|
| 13 |
|