jonathang commited on
Commit
0ffd4d4
1 Parent(s): 60c5829

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -232,7 +232,14 @@ Only write the short description and nothing else.
232
  Absolutely do not mention humans.
233
  Do not include specific numbers.'''.replace('\n', ' '))
234
  description = chat.message(str(weather_info))
235
- prompt = f'{description} In the style of {random.choice(art_styles)}'
 
 
 
 
 
 
 
236
  logger.info(prompt)
237
  img = Image.create(prompt, **kwargs)
238
  return img["b64_json"], prompt
 
232
  Absolutely do not mention humans.
233
  Do not include specific numbers.'''.replace('\n', ' '))
234
  description = chat.message(str(weather_info))
235
+ hd_modifiers = """3840x2160
236
+ 8k 3D / 16k 3D
237
+ 8k resolution / 16k resolution
238
+ Detailed
239
+ Ultra HD
240
+ Ultrafine detail
241
+ """.split('\n')
242
+ prompt = f'{random.choice(art_styles)} of {description} {random.choice(hd_modifiers)}'
243
  logger.info(prompt)
244
  img = Image.create(prompt, **kwargs)
245
  return img["b64_json"], prompt