Spaces:
Runtime error
Runtime error
Commit
•
6041c41
1
Parent(s):
c279e69
Update app.py
Browse files
app.py
CHANGED
@@ -49,13 +49,6 @@ state = {
|
|
49 |
result = {}
|
50 |
|
51 |
|
52 |
-
out = cv2.VideoWriter("static/test_video.mp4", cv2.VideoWriter_fourcc(*'mp4v'), 10, [ 100, 100 ] )
|
53 |
-
for i in range(20):
|
54 |
-
frame = (np.random.rand(100, 100, 3)*255).astype('uint8')
|
55 |
-
out.write(frame)
|
56 |
-
out.release()
|
57 |
-
|
58 |
-
|
59 |
|
60 |
# Start function, called on file upload
|
61 |
def on_input(file_list):
|
@@ -173,8 +166,6 @@ with demo:
|
|
173 |
# Zip file output
|
174 |
zip_out = gr.File(label="ZIP Output", interactive=False)
|
175 |
UI_components.append(zip_out)
|
176 |
-
|
177 |
-
video_out = gr.Video(value="static/test_video.mp4", label='Annotated Video', interactive=False)
|
178 |
|
179 |
# Create result tabs
|
180 |
tabs = []
|
|
|
49 |
result = {}
|
50 |
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
# Start function, called on file upload
|
54 |
def on_input(file_list):
|
|
|
166 |
# Zip file output
|
167 |
zip_out = gr.File(label="ZIP Output", interactive=False)
|
168 |
UI_components.append(zip_out)
|
|
|
|
|
169 |
|
170 |
# Create result tabs
|
171 |
tabs = []
|