Auto-update: Sun Jun 30 08:36:43 PDT 2024
This commit is contained in:
parent
b71a14eea0
commit
c9dc619a5a
1 changed files with 3 additions and 1 deletions
|
@ -267,7 +267,7 @@ async def generate_banner(dt, location: Location = None, forecast: str = None, m
|
|||
location = locations[0]
|
||||
if not forecast:
|
||||
forecast = await update_dn_weather(date_time, False, location.latitude, location.longitude)
|
||||
|
||||
|
||||
prompt = await generate_context(date_time, location, forecast, mood, other_context)
|
||||
L.DEBUG(f"Prompt: {prompt}")
|
||||
final_path = await sd.workflow(prompt, scene=OBSIDIAN_BANNER_SCENE, destination_path=destination_path)
|
||||
|
@ -333,6 +333,8 @@ async def generate_context(date_time, location: Location, forecast: str, mood: s
|
|||
prompt = "Generate an aesthetically appealing banner image for a daily note that helps to visualize the following scene information: "
|
||||
prompt += "\n".join([display_name, forecast, mood, other_context])
|
||||
|
||||
return prompt
|
||||
|
||||
|
||||
|
||||
async def get_note(date_time: dt_datetime):
|
||||
|
|
Loading…
Add table
Reference in a new issue