Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def create_slides(text, duration, output_folder, max_lines=6):
|
|
73 |
y = max((720 - total_height) // 2, 20)
|
74 |
for line in lines:
|
75 |
w = font.getbbox(line)[2] - font.getbbox(line)[0]
|
76 |
-
draw.text(((1280 - w) // 2, y), line, font=font, fill="white")
|
77 |
y += font.getbbox(line)[3] - font.getbbox(line)[1] + 20
|
78 |
|
79 |
logo = Image.open(logo_path).convert("RGBA")
|
@@ -135,7 +135,7 @@ iface = gr.Interface(
|
|
135 |
gr.Textbox(label="Summary"),
|
136 |
gr.Video(label="Generated AV Summary")
|
137 |
],
|
138 |
-
title="
|
139 |
description="Generates a 5/10 sec video summary from article URL with clean typography, visuals, logo and illustration."
|
140 |
)
|
141 |
|
|
|
73 |
y = max((720 - total_height) // 2, 20)
|
74 |
for line in lines:
|
75 |
w = font.getbbox(line)[2] - font.getbbox(line)[0]
|
76 |
+
draw.text(((1280 - w) // 2, y), line.encode('utf-8', 'replace').decode('utf-8'), font=font, fill="white")
|
77 |
y += font.getbbox(line)[3] - font.getbbox(line)[1] + 20
|
78 |
|
79 |
logo = Image.open(logo_path).convert("RGBA")
|
|
|
135 |
gr.Textbox(label="Summary"),
|
136 |
gr.Video(label="Generated AV Summary")
|
137 |
],
|
138 |
+
title="🎞️ AV Summary Generator (Visual Promo Style)",
|
139 |
description="Generates a 5/10 sec video summary from article URL with clean typography, visuals, logo and illustration."
|
140 |
)
|
141 |
|