Skip to content

Commit

Permalink
deb
Browse files Browse the repository at this point in the history
  • Loading branch information
Cephra committed Sep 3, 2024
1 parent 07ee0e3 commit aff346e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/generator/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ def __init__(self, prompt_file_name: str, template_data: dict = dict()):
self._template_data = template_data
self._template_data["date"] = date.today().strftime("%A %B %d, %Y")
self._template = template_env.get_template("{}.txt".format(prompt_file_name))
self._debug = False

def generate(self):
return self._template.render(self._template_data)
rendered_prompt = self._template.render(self._template_data)
if self._debug:
print(rendered_prompt)
return rendered_prompt

# Used to generate a new blog post
class GeneratePrompt(PromptTemplate):
Expand Down

0 comments on commit aff346e

Please sign in to comment.