|
11 | 11 | },
|
12 | 12 | {
|
13 | 13 | "cell_type": "code",
|
14 |
| - "execution_count": null, |
| 14 | + "execution_count": 1, |
15 | 15 | "metadata": {
|
16 | 16 | "cellView": "form",
|
17 | 17 | "id": "tuOe1ymfHZPu"
|
|
94 | 94 | },
|
95 | 95 | {
|
96 | 96 | "cell_type": "code",
|
97 |
| - "execution_count": null, |
| 97 | + "execution_count": 2, |
98 | 98 | "metadata": {
|
99 | 99 | "id": "J6Pd9SFJ1yVi"
|
100 | 100 | },
|
101 |
| - "outputs": [], |
| 101 | + "outputs": [ |
| 102 | + { |
| 103 | + "name": "stdout", |
| 104 | + "output_type": "stream", |
| 105 | + "text": [ |
| 106 | + "\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/137.4 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[91m━━\u001b[0m\u001b[91m╸\u001b[0m\u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m10.2/137.4 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[91m━━━━━━━━━━━\u001b[0m\u001b[91m╸\u001b[0m\u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m41.0/137.4 kB\u001b[0m \u001b[31m498.4 kB/s\u001b[0m eta \u001b[36m0:00:01\u001b[0m\r\u001b[2K \u001b[91m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[91m╸\u001b[0m\u001b[90m━\u001b[0m \u001b[32m133.1/137.4 kB\u001b[0m \u001b[31m1.3 MB/s\u001b[0m eta \u001b[36m0:00:01\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m137.4/137.4 kB\u001b[0m \u001b[31m1.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
| 107 | + "\u001b[?25h" |
| 108 | + ] |
| 109 | + } |
| 110 | + ], |
102 | 111 | "source": [
|
103 | 112 | "!pip install -q -U google-generativeai"
|
104 | 113 | ]
|
|
120 | 129 | },
|
121 | 130 | {
|
122 | 131 | "cell_type": "code",
|
123 |
| - "execution_count": null, |
| 132 | + "execution_count": 3, |
124 | 133 | "metadata": {
|
125 | 134 | "id": "HTiaTu6O1LRC"
|
126 | 135 | },
|
|
148 | 157 | },
|
149 | 158 | {
|
150 | 159 | "cell_type": "code",
|
151 |
| - "execution_count": null, |
| 160 | + "execution_count": 4, |
152 | 161 | "metadata": {
|
153 | 162 | "id": "s-JqXcDe2hZ_"
|
154 | 163 | },
|
|
168 | 177 | },
|
169 | 178 | {
|
170 | 179 | "cell_type": "code",
|
171 |
| - "execution_count": null, |
| 180 | + "execution_count": 5, |
172 | 181 | "metadata": {
|
173 | 182 | "id": "j51mcrLD4Y2W"
|
174 | 183 | },
|
175 |
| - "outputs": [], |
| 184 | + "outputs": [ |
| 185 | + { |
| 186 | + "name": "stdout", |
| 187 | + "output_type": "stream", |
| 188 | + "text": [ |
| 189 | + "In the bustling city of Evermore, there lived an ordinary schoolgirl named Anya. Little did she know that her life was about to take an extraordinary turn when she discovered a peculiar backpack.\n", |
| 190 | + "\n", |
| 191 | + "One morning, as Anya rummaged through her grandmother's attic, her eyes fell upon a dusty old backpack. Intrigued, she picked it up and unzipped it. Inside, she found a jumble of papers, trinkets, and a small, glowing crystal.\n", |
| 192 | + "\n", |
| 193 | + "As Anya reached out to touch the crystal, the backpack hummed with a soft energy. Suddenly, strange things began to happen. The zippers moved on their own, opening and closing compartments that revealed hidden pockets. Book pages turned themselves, revealing forgotten spells and incantations.\n", |
| 194 | + "\n", |
| 195 | + "Anya realized that this was no ordinary backpack. It was a magical backpack, imbued with ancient enchantments. Excited and overwhelmed, she carefully put on the backpack and felt its power surge through her.\n", |
| 196 | + "\n", |
| 197 | + "The next day at school, Anya couldn't resist testing out her new secret. She wished her homework was done, and to her amazement, the backpack performed its magic. The pen in her pocket began scribbling away, completing her assignments in a matter of minutes.\n", |
| 198 | + "\n", |
| 199 | + "As days turned into weeks, Anya's backpack became her most precious possession. She used its enchantments to help those in need, from repairing broken toys to granting small wishes. But she knew she had to be careful, lest the power of the backpack become too much for her to handle.\n", |
| 200 | + "\n", |
| 201 | + "One day, a nefarious sorcerer named Eldric learned of Anya's secret. Coveting its power, he plotted to steal the backpack. A fierce battle ensued, with Anya's backpack summoning magical creatures to her aid.\n", |
| 202 | + "\n", |
| 203 | + "In the end, Anya's courage and the power of the backpack prevailed. Eldric was defeated, and the city of Evermore was safe from his tyranny.\n", |
| 204 | + "\n", |
| 205 | + "From that day forward, Anya became known as the Guardian of the Magic Backpack. She used its enchantments wisely, always remembering the lesson she had learned: with great power comes great responsibility. And so, the legend of the magic backpack was passed down through generations, a testament to the power of kindness, courage, and the boundless imagination of a young schoolgirl.\n" |
| 206 | + ] |
| 207 | + } |
| 208 | + ], |
176 | 209 | "source": [
|
177 | 210 | "response = model.generate_content(\"Write a story about a magic backpack.\")\n",
|
178 | 211 | "print(response.text)"
|
|
0 commit comments