From c9dc619a5aafbffe52f96b79830793122688c28f Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Sun, 30 Jun 2024 08:36:43 -0700 Subject: [PATCH] Auto-update: Sun Jun 30 08:36:43 PDT 2024 --- sijapi/routers/note.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sijapi/routers/note.py b/sijapi/routers/note.py index c600286..8c4ea3c 100644 --- a/sijapi/routers/note.py +++ b/sijapi/routers/note.py @@ -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):