bidit commited on
Commit
e2f7104
·
1 Parent(s): f032640

Test iface

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ processor = BlipProcessor.from_pretrained(model_id)
18
  def launch(url):
19
 
20
  # Open the video file
21
- cap = cv2.VideoCapture(url)
22
 
23
  # Loop through the frames of the video
24
  while cap.isOpened():
@@ -47,7 +47,7 @@ def launch(url):
47
 
48
  video_url = 'https://www.youtube.com/watch?v=orbkg5JH9C8'
49
  subprocess.call(['youtube-dl', '-f', 'best', '-o', 'video.mp4', video_url]
50
- iface = gr.Interface(launch, inputs='video.mp4', outputs="text")
51
  iface.launch()
52
 
53
 
 
18
  def launch(url):
19
 
20
  # Open the video file
21
+ cap = cv2.VideoCapture('video.mp4')
22
 
23
  # Loop through the frames of the video
24
  while cap.isOpened():
 
47
 
48
  video_url = 'https://www.youtube.com/watch?v=orbkg5JH9C8'
49
  subprocess.call(['youtube-dl', '-f', 'best', '-o', 'video.mp4', video_url]
50
+ iface = gr.Interface(launch, inputs='text', outputs="text")
51
  iface.launch()
52
 
53