|
131 | 131 | "\n", |
132 | 132 | "**1. Story Generation:**\n", |
133 | 133 | "\n", |
134 | | - "* **Google Gemini API** is used to generate a sequence of story scenes. Each scene includes an image prompt, audio narration text, and character descriptions. However,to ensure consistency in storytelling and character representation,[Gemini is constrained](https://ai.google.dev/gemini-api/docs/structured-output?lang=python) to respond with JSON,a structured data format.\n", |
| 134 | + "* **Google Gemini API** is used to generate a sequence of story scenes. Each scene includes an image prompt, audio narration text, and character descriptions. However, to ensure consistency in storytelling and character representation, [Gemini is constrained](https://ai.google.dev/gemini-api/docs/structured-output?lang=python) to respond with JSON, a structured data format.\n", |
135 | 135 | "* **User Input:** The user provides a theme and the desired number of scenes for their story. This information guides the story generation process.\n", |
136 | 136 | "\n", |
137 | 137 | "**2. Image Generation:**\n", |
|
342 | 342 | " model=MODEL,\n", |
343 | 343 | " contents=f'''you are an animation video producer. Generate a story sequence about {complete_story} in {pages} scenes (with interactions and characters), 1 sec each scene. Write:\n", |
344 | 344 | "\n", |
345 | | - "image_prompt:(define art style for kids animation(consistant for all the characters), no violence) a full description of the scene, the characters in it, and the background in 20 words or less. Progressively shift the scene as the story advances.\n", |
| 345 | + "image_prompt:(define art style for kids animation(consistent for all the characters), no violence) a full description of the scene, the characters in it, and the background in 20 words or less. Progressively shift the scene as the story advances.\n", |
346 | 346 | "audio_text: a one-sentence dialogue/narration for the scene.\n", |
347 | 347 | "character_description: no people ever, only animals and objects. Describe all characters (consistent names, features, clothing, etc.) with an art style reference (e.g., \"Pixar style,\" \"photorealistic,\" \"Ghibli\") in 30 words or less.\n", |
348 | 348 | "''',\n", |
|
736 | 736 | "This notebook is designed to run without modifications. It generates an animated story video using multiple Google APIs and open source libraries. Make sure to have a valid API key and to install all the necessary dependencies before running the notebook in Google Colab.\n", |
737 | 737 | "\n", |
738 | 738 | "\n", |
739 | | - "If you like to view premade videos using this concept ,Checkout this [website](https://www.vastai.ai/)." |
| 739 | + "If you like to view premade videos using this concept, Checkout this [website](https://www.vastai.ai/)." |
740 | 740 | ] |
741 | 741 | }, |
742 | 742 | { |
|
0 commit comments