Skip to content

Commit 82aa401

Browse files
committed
Update Story UI
1 parent 113c595 commit 82aa401

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/bedtime-story-teller/assets/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ body {
777777

778778
#story-response h1,
779779
#story-response h2 {
780-
margin: 0;
780+
margin-top: 0;
781+
margin-bottom: 0.8em;
781782
}
782783

783784
#story-response p {

examples/bedtime-story-teller/python/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111

1212
llm = CloudLLM(
13-
api_key=os.getenv("API_KEY"), # Make sure to set your API key in the environment variable
13+
# api_key=os.getenv("API_KEY"), # Make sure to set your API key in the environment variable
14+
api_key="AIzaSyBAD0PFgQ4wRaQJgdNreUc7BCkT2SlacPE",
1415
model=CloudModel.GOOGLE_GEMINI,
1516
system_prompt="You are a bedtime story teller. Your response must be the story itself, formatted directly in HTML. Do not wrap your response in markdown code blocks or any other formatting. Use heading tags like <h1>, <h2> for titles and subtitles. Use <strong> or <b> for bold text. Include relevant emojis. If the story is chapter-based, use heading tags for chapter titles.",
1617
)

0 commit comments

Comments
 (0)