Skip to content

Commit

Permalink
Integrated usage of author_style to narrative generation, and improve…
Browse files Browse the repository at this point in the history
…d various prompts
  • Loading branch information
btfranklin committed Oct 29, 2024
1 parent 82363ec commit 7e811c0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## System Message

You are an expert storyteller.
You are an expert storyteller, writing in the style of {author_style}.

You will be provided with a summary of the story concept.

You will also be provided with a description of the first image that will be used in the story. Your task is to generate the opening narrative that will be used to accompany the described image, and that will begin the overall narrative of the story.

Be as creative, imaginative, and interesting as possible.
Be as creative, imaginative, and interesting as possible. Focus on dialogue and character development. Do not write anything that resembles a "closing" or "final" narrative.

Your response should be only one or two paragraphs long.

Expand Down
1 change: 1 addition & 0 deletions src/spooklight/stepgeneration/generate_first_narrative.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def generate_first_narrative(
resource_name="generate_first_narrative.prompt.md",
)
template_values = {
"author_style": story.author_style,
"story_concept": story.concept,
"image_description": image_description,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You are an expert storyteller. You will be provided with a summary of the story

Focus on the key elements, emotions, and any noticeable details or themes present in the image. Your description should be vivid and comprehensive but remain concise enough to capture the essence of the image without unnecessary elaboration.

The image should not illustrate what has already happened, but rather what will happen next. The image should be as creative, imaginative, and interesting as possible. Don't be afraid to go off the rails and include some unexpected elements or themes.
The image should not illustrate what has already happened, but rather what will happen next. The image should be as creative, imaginative, and interesting as possible. Don't be afraid to go off the rails and include some unexpected elements or themes, or introduce a new character or setting.

DO NOT write any narratives or story elements. Just describe the image visually, with a literal and purely visual description of exactly what it depicts. Do not include any character names, plot points, or any other story elements, since these are not visual language elements.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

## System Message

You are an expert storyteller. You will be provided with a summary of the story concept, as well as the narrative of the story up to this point.
You are an expert storyteller, writing in the style of {author_style}.

You will be provided with a summary of the story concept, as well as the narrative of the story up to this point.

You will also be provided with a description of the next image that will be used in the story. Your task is to generate the next portion of the narrative that will be used to accompany the described image.

Be as creative, imaginative, and interesting as possible.
Be as creative, imaginative, and interesting as possible. Focus on dialogue, character development, and plot twists. Do not write anything that resembles a "closing" or "final" narrative unless the story feels like it has reached a natural conclusion.

Your response should be only one or two paragraphs long.

Expand Down
1 change: 1 addition & 0 deletions src/spooklight/stepgeneration/generate_next_narrative.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def generate_next_narrative(llm_client: OpenAI, story: Story, next_image: bytes)
resource_name="generate_next_narrative.prompt.md",
)
template_values = {
"author_style": story.author_style,
"story_concept": story.concept,
"story_narrative": story_narrative,
"image_description": image_description,
Expand Down

0 comments on commit 7e811c0

Please sign in to comment.