jonathang commited on
Commit
44c5944
1 Parent(s): 84cb457

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -223,12 +223,13 @@ class WeatherDraw:
223
  def generate_image(self, weather_info, **kwargs):
224
  animal = random.choice(animals)
225
  logger.info(f"Got animal {animal}")
226
- chat = Chat(f'''
227
- Given the following weather conditions, write a plaintext, short, and vivid description of an
228
- adorable {animal} in the weather conditions doing a fun activity a human would do matching these weather conditions.
229
- For instance, if its snowing, the activity would be snowboarding.
230
  Make sure to include a small background.
231
  Only write the short description and nothing else.
 
232
  Do not include specific numbers.'''.replace('\n', ' '))
233
  description = chat.message(str(weather_info))
234
  prompt = f'{description} In the style of {random.choice(art_styles)}'
 
223
  def generate_image(self, weather_info, **kwargs):
224
  animal = random.choice(animals)
225
  logger.info(f"Got animal {animal}")
226
+ chat = Chat(f'''Given
227
+ the following weather conditions, write a plaintext, short, and vivid description of an
228
+ adorable {animal} in the weather conditions doing a specific activity a human does in these weather conditions.
229
+ For instance, if its snowing, the activity would be skiing.
230
  Make sure to include a small background.
231
  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)}'