Test iface
Browse files
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(
|
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='
|
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 |
|