Rahatara commited on
Commit
071fff8
·
verified ·
1 Parent(s): c297463

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +0 -53
app2.py CHANGED
@@ -1,51 +1,6 @@
1
  import cv2
2
  import gradio as gr
3
 
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
  # get the frames
50
  def frame_capture(video_path):
51
  # Function to extract frames
@@ -74,14 +29,6 @@ def extract_frames(video):
74
  frames = frame_capture(video)
75
  return frames
76
 
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
  # Define the Gradio interface
86
  video_input = gr.Video(label="Upload Video", autoplay=True)
87
  output_frames = gr.Gallery(label='Frame')
 
1
  import cv2
2
  import gradio as gr
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  # get the frames
5
  def frame_capture(video_path):
6
  # Function to extract frames
 
29
  frames = frame_capture(video)
30
  return frames
31
 
 
 
 
 
 
 
 
 
32
  # Define the Gradio interface
33
  video_input = gr.Video(label="Upload Video", autoplay=True)
34
  output_frames = gr.Gallery(label='Frame')