Skip to content

Commit

Permalink
finish removing ai-generated keywords feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrude committed Jul 9, 2023
1 parent f729d15 commit 71729f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
12 changes: 0 additions & 12 deletions docs/config.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,3 @@ template:
# .
# default: {AI_NAME}: is currently generating an image, as requested.
prompt_image_coming:

# Sent to Oobabooga, along with the user's image request, to generate image
# keywords. The AI's response to this prompt will then be sent to Stable
# Diffusion to generate an image.
# .
# Allowed tokens: {AI_NAME}, {USER_MESSAGE}
# .
# default: Below is an instruction that describes a task, paired with an input that
# provides further context. Write a response that appropriately completes the request.
# ### Instruction: The input text asks for an image to be created. Please create a list
# of keywords to describe that image. ### Input: {USER_MESSAGE} ### Response:
prompt_image_keywords:
31 changes: 0 additions & 31 deletions src/oobabot/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ class Templates(enum.Enum):
PROMPT_HISTORY_LINE = "prompt_history_line"
PROMPT_IMAGE_COMING = "prompt_image_coming"

# prompts to the AI to generate image keywords
PROMPT_IMAGE_KEYWORDS = "prompt_image_keywords"

def __str__(self) -> str:
return self.value

Expand Down Expand Up @@ -109,18 +106,6 @@ class TemplateStore:
+ "image.",
True,
),
Templates.PROMPT_IMAGE_KEYWORDS: (
[
TemplateToken.AI_NAME,
TemplateToken.USER_MESSAGE,
],
"""
Sent to Oobabooga, along with the user's image request, to generate
image keywords. The AI's response to this prompt will then be sent
to Stable Diffusion to generate an image.
""",
True,
),
Templates.IMAGE_DETACH: (
[
TemplateToken.IMAGE_PROMPT,
Expand Down Expand Up @@ -187,22 +172,6 @@ class TemplateStore:
{AI_NAME}: is currently generating an image, as requested.
"""
),
Templates.PROMPT_IMAGE_KEYWORDS: textwrap.dedent(
"""
Below is an instruction that describes a task, paired with an input
that provides further context. Write a response that appropriately
completes the request.
### Instruction:
The input text asks for an image to be created. Please create a list
of keywords to describe that image.
### Input:
{USER_MESSAGE}
### Response:
"""
),
Templates.IMAGE_DETACH: textwrap.dedent(
"""
{USER_NAME} asked for an image with the prompt:
Expand Down

0 comments on commit 71729f8

Please sign in to comment.