Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ pix2pix = gr.Blocks.load(name="spaces/fffiloni/instruct-pix2pix-clone", api_key=
|
|
10 |
def get_frames(video_in):
|
11 |
frames = []
|
12 |
#resize the video
|
13 |
-
clip =
|
14 |
clip_resized = clip.resize(height=512)
|
15 |
clip_resized.write_videofile("video_resized.mp4")
|
16 |
print("video resized to 512 height")
|
|
|
10 |
def get_frames(video_in):
|
11 |
frames = []
|
12 |
#resize the video
|
13 |
+
clip = VideoFileClip(video_in)
|
14 |
clip_resized = clip.resize(height=512)
|
15 |
clip_resized.write_videofile("video_resized.mp4")
|
16 |
print("video resized to 512 height")
|