Spaces:
Running
on
Zero
Running
on
Zero
import spaces first
Browse files- minigpt4_video_demo.py +1 -2
minigpt4_video_demo.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import torch
|
2 |
import webvtt
|
3 |
import os
|
@@ -35,8 +36,6 @@ hf_hub_download(
|
|
35 |
)
|
36 |
'''
|
37 |
|
38 |
-
import spaces
|
39 |
-
|
40 |
def create_video_grid(images, rows, cols,save_path):
|
41 |
image_width, image_height = images[0].size
|
42 |
grid_width = cols * image_width
|
|
|
1 |
+
import spaces
|
2 |
import torch
|
3 |
import webvtt
|
4 |
import os
|
|
|
36 |
)
|
37 |
'''
|
38 |
|
|
|
|
|
39 |
def create_video_grid(images, rows, cols,save_path):
|
40 |
image_width, image_height = images[0].size
|
41 |
grid_width = cols * image_width
|