Spaces:
Running
Running
commit
Browse files
app.py
CHANGED
@@ -58,11 +58,11 @@ additional_image = None
|
|
58 |
|
59 |
seq=512
|
60 |
fps=18
|
61 |
-
width=
|
62 |
-
height=
|
63 |
image_steps=8
|
64 |
video_steps=15
|
65 |
-
accu=
|
66 |
|
67 |
# ui data
|
68 |
|
@@ -207,7 +207,7 @@ def pipe_generate(img,p1,p2,time,title):
|
|
207 |
|
208 |
if title != "":
|
209 |
draw = ImageDraw.Draw(img)
|
210 |
-
textheight=
|
211 |
font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
|
212 |
textwidth = draw.textlength(title,font)
|
213 |
x = (width - textwidth) // 2
|
|
|
58 |
|
59 |
seq=512
|
60 |
fps=18
|
61 |
+
width=1440
|
62 |
+
height=1440
|
63 |
image_steps=8
|
64 |
video_steps=15
|
65 |
+
accu=6.5
|
66 |
|
67 |
# ui data
|
68 |
|
|
|
207 |
|
208 |
if title != "":
|
209 |
draw = ImageDraw.Draw(img)
|
210 |
+
textheight=60
|
211 |
font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
|
212 |
textwidth = draw.textlength(title,font)
|
213 |
x = (width - textwidth) // 2
|