Yaron Koresh commited on
Commit
266e17b
·
verified ·
1 Parent(s): c2185df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -57,8 +57,8 @@ additional_image = None
57
 
58
  seq=512
59
  fps=20
60
- width=1280
61
- height=720
62
  image_steps=8
63
  video_steps=20
64
  accu=4.5
@@ -187,12 +187,12 @@ def pipe_generate(img,p1,p2,time,title):
187
 
188
  if title != "":
189
  draw = ImageDraw.Draw(img)
190
- textheight=84
191
  font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
192
  textwidth = draw.textlength(title,font)
193
  x = (width - textwidth) // 2
194
  y = (height - textheight) // 2
195
- draw.text((x, y), title,font=font)
196
 
197
  additional_image = img if additional_image else None
198
 
@@ -227,7 +227,7 @@ def handle_generate(*_inp):
227
  if inp[1] != "":
228
  inp[1] = ", " + inp[1]
229
 
230
- inp[1] = f'true reality, natural colors, realistic, beautiful pretty look, genuine and authentic reality, logical reasonable photo content, natural look, masterpiece photo, highly detailed photo{inp[1]}'
231
 
232
  print(f"""
233
 
 
57
 
58
  seq=512
59
  fps=20
60
+ width=1920
61
+ height=1080
62
  image_steps=8
63
  video_steps=20
64
  accu=4.5
 
187
 
188
  if title != "":
189
  draw = ImageDraw.Draw(img)
190
+ textheight=100
191
  font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
192
  textwidth = draw.textlength(title,font)
193
  x = (width - textwidth) // 2
194
  y = (height - textheight) // 2
195
+ draw.text((x, y), title, (0,0,0), font=font)
196
 
197
  additional_image = img if additional_image else None
198
 
 
227
  if inp[1] != "":
228
  inp[1] = ", " + inp[1]
229
 
230
+ inp[1] = f'taken from real situations, bright colors, realistic, beautiful pretty look, genuine and authentic reality, logical reasonable photo content, natural look, masterpiece photo, highly detailed photo{inp[1]}'
231
 
232
  print(f"""
233