Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
228 |
-
adorable {animal} in the weather conditions doing a
|
229 |
-
For instance, if its snowing, the activity would be
|
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)}'
|