Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,9 +39,6 @@ def process_video(text):
|
|
39 |
resized_pil = pil_image.resize(new_size[::-1], Image.LANCZOS)
|
40 |
return np.array(resized_pil)
|
41 |
|
42 |
-
new_size = (1080, int(video.h * (1080 / video.w)))
|
43 |
-
video = video.fl_image(lambda image: resize_image(image, new_size))
|
44 |
-
|
45 |
text_lines = text.split()
|
46 |
text = "\n".join([" ".join(text_lines[i:i+8]) for i in range(0, len(text_lines), 8)])
|
47 |
|
|
|
39 |
resized_pil = pil_image.resize(new_size[::-1], Image.LANCZOS)
|
40 |
return np.array(resized_pil)
|
41 |
|
|
|
|
|
|
|
42 |
text_lines = text.split()
|
43 |
text = "\n".join([" ".join(text_lines[i:i+8]) for i in range(0, len(text_lines), 8)])
|
44 |
|