miojizzy commited on
Commit
eb9c960
·
1 Parent(s): 6fbdfed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
  import cv2 as cv
3
- from zipfile import ZipFile
4
 
5
  import gradio as gr
6
 
@@ -13,10 +13,10 @@ def get_video_info(v):
13
  height = vc.get(cv.CAP_PROP_FRAME_HEIGHT)
14
  vc.release()
15
  return "\n".join([
16
- "fps: " + fps,
17
- "frame count: " + frames,
18
- "width: " + width,
19
- "height: " + height
20
  ])
21
 
22
 
@@ -30,4 +30,4 @@ with gr.Blocks() as demo:
30
 
31
 
32
  if __name__ == "__main__":
33
- demo.queue().launch()
 
1
  import os
2
  import cv2 as cv
3
+
4
 
5
  import gradio as gr
6
 
 
13
  height = vc.get(cv.CAP_PROP_FRAME_HEIGHT)
14
  vc.release()
15
  return "\n".join([
16
+ "fps: " + str(fps),
17
+ "frame count: " + str(frames),
18
+ "width: " + str(width),
19
+ "height: " + str(height)
20
  ])
21
 
22
 
 
30
 
31
 
32
  if __name__ == "__main__":
33
+ demo.queue().launch(debug=True)