experiment with the notebook
Browse files
unit2/smolagents/code_agents copy.ipynb
CHANGED
|
@@ -34,7 +34,7 @@
|
|
| 34 |
},
|
| 35 |
"outputs": [],
|
| 36 |
"source": [
|
| 37 |
-
"!pip install smolagents -U"
|
| 38 |
]
|
| 39 |
},
|
| 40 |
{
|
|
@@ -103,7 +103,7 @@
|
|
| 103 |
},
|
| 104 |
{
|
| 105 |
"cell_type": "code",
|
| 106 |
-
"execution_count":
|
| 107 |
"metadata": {
|
| 108 |
"colab": {
|
| 109 |
"base_uri": "https://localhost:8080/",
|
|
@@ -112,464 +112,27 @@
|
|
| 112 |
"id": "DeBvQBEpx-VO",
|
| 113 |
"outputId": "9c715d2d-fa78-4514-bb08-2c7712951cd4"
|
| 114 |
},
|
| 115 |
-
"outputs": [
|
| 116 |
-
{
|
| 117 |
-
"data": {
|
| 118 |
-
"text/html": [
|
| 119 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ </span><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">New run</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</span>\n",
|
| 120 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702\">โ</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">โ</span>\n",
|
| 121 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702\">โ</span> <span style=\"font-weight: bold\">Search for the best music recommendations for a party at the Wayne's mansion.</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">โ</span>\n",
|
| 122 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702\">โ</span> <span style=\"color: #d4b702; text-decoration-color: #d4b702\">โ</span>\n",
|
| 123 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702\">โฐโ InferenceClientModel - Qwen/Qwen2.5-Coder-32B-Instruct โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</span>\n",
|
| 124 |
-
"</pre>\n"
|
| 125 |
-
],
|
| 126 |
-
"text/plain": [
|
| 127 |
-
"\u001b[38;2;212;183;2mโญโ\u001b[0m\u001b[38;2;212;183;2mโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[1;38;2;212;183;2mNew run\u001b[0m\u001b[38;2;212;183;2m \u001b[0m\u001b[38;2;212;183;2mโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\u001b[0m\u001b[38;2;212;183;2mโโฎ\u001b[0m\n",
|
| 128 |
-
"\u001b[38;2;212;183;2mโ\u001b[0m \u001b[38;2;212;183;2mโ\u001b[0m\n",
|
| 129 |
-
"\u001b[38;2;212;183;2mโ\u001b[0m \u001b[1mSearch for the best music recommendations for a party at the Wayne's mansion.\u001b[0m \u001b[38;2;212;183;2mโ\u001b[0m\n",
|
| 130 |
-
"\u001b[38;2;212;183;2mโ\u001b[0m \u001b[38;2;212;183;2mโ\u001b[0m\n",
|
| 131 |
-
"\u001b[38;2;212;183;2mโฐโ\u001b[0m\u001b[38;2;212;183;2m InferenceClientModel - Qwen/Qwen2.5-Coder-32B-Instruct \u001b[0m\u001b[38;2;212;183;2mโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\u001b[0m\u001b[38;2;212;183;2mโโฏ\u001b[0m\n"
|
| 132 |
-
]
|
| 133 |
-
},
|
| 134 |
-
"metadata": {},
|
| 135 |
-
"output_type": "display_data"
|
| 136 |
-
},
|
| 137 |
-
{
|
| 138 |
-
"data": {
|
| 139 |
-
"text/html": [
|
| 140 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">1</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ</span>\n",
|
| 141 |
-
"</pre>\n"
|
| 142 |
-
],
|
| 143 |
-
"text/plain": [
|
| 144 |
-
"\u001b[38;2;212;183;2mโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m1\u001b[0m\u001b[38;2;212;183;2m โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\u001b[0m\n"
|
| 145 |
-
]
|
| 146 |
-
},
|
| 147 |
-
"metadata": {},
|
| 148 |
-
"output_type": "display_data"
|
| 149 |
-
},
|
| 150 |
-
{
|
| 151 |
-
"data": {
|
| 152 |
-
"text/html": [
|
| 153 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> โ <span style=\"font-weight: bold\">Executing parsed code:</span> โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 154 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">search_results </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> web_search(query</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"best music for a mansion party\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 155 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(search_results)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 156 |
-
" โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 157 |
-
"</pre>\n"
|
| 158 |
-
],
|
| 159 |
-
"text/plain": [
|
| 160 |
-
" โ \u001b[1mExecuting parsed code:\u001b[0m โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 161 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34msearch_results\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mweb_search\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mquery\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mbest music for a mansion party\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 162 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34msearch_results\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 163 |
-
" โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n"
|
| 164 |
-
]
|
| 165 |
-
},
|
| 166 |
-
"metadata": {},
|
| 167 |
-
"output_type": "display_data"
|
| 168 |
-
},
|
| 169 |
-
{
|
| 170 |
-
"data": {
|
| 171 |
-
"text/html": [
|
| 172 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Execution logs:</span>\n",
|
| 173 |
-
"## Search Results\n",
|
| 174 |
-
"\n",
|
| 175 |
-
"[The 75 Best Party Songs That Will Get Everyone Dancing - \n",
|
| 176 |
-
"Gear4music](https://www.gear4music.com/blog/best-party-songs/)\n",
|
| 177 |
-
"The best party songs 1. \"September\" - Earth, Wind & Fire (1978) Quite possibly the best party song. An infectious \n",
|
| 178 |
-
"mix of funk and soul, \"September\" is celebrated for its upbeat melody and \"ba-dee-ya\" chorus, making it a timeless \n",
|
| 179 |
-
"dance favorite.\n",
|
| 180 |
-
"\n",
|
| 181 |
-
"[200 Classic House Party Songs Everyone Knows | The Best ... - \n",
|
| 182 |
-
"iSpyTunes](https://www.ispytunes.com/post/house-party-songs)\n",
|
| 183 |
-
"Next, let's get into reviewing 20 of the best songs for your next house party. 1. rockstar by Post Malone (feat. 21\n",
|
| 184 |
-
"Savage) \"rockstar\" by Post Malone (feat. 21 Savage) is an incredibly popular song with a great instrumental and an \n",
|
| 185 |
-
"infectious chorus, which makes it a perfect song for playing at parties. The whole song is like a giant energy ...\n",
|
| 186 |
-
"\n",
|
| 187 |
-
"[Best Songs To Party: DJ's Ultimate Party Songs Playlist - \n",
|
| 188 |
-
"Top40Weekly.com](https://top40weekly.com/best-songs-to-party/)\n",
|
| 189 |
-
"Don't forget the music! We've compiled the best songs to party that are sure to get everyone in the mood to dance \n",
|
| 190 |
-
"and have a good time. Skip to content. Search for: 1950. Top Songs from 1955; ... a house party, or just jamming \n",
|
| 191 |
-
"out with friends, this song will ignite the party vibe and create unforgettable memories. 4 - \"Get Lucky ...\n",
|
| 192 |
-
"\n",
|
| 193 |
-
"[40 Best Party Songs | Songs To Dance To, Ranked By Our Editors - Time \n",
|
| 194 |
-
"Out](https://www.timeout.com/music/best-party-songs)\n",
|
| 195 |
-
"The best is when you go for the extended version, and find yourself in the midst of the intro for about 11 minutes.\n",
|
| 196 |
-
"But whichever version you go for, this is the party song, in every way. She ...\n",
|
| 197 |
-
"\n",
|
| 198 |
-
"[30 Best House Party Songs: The Ultimate \n",
|
| 199 |
-
"Playlist](https://rageshreemusicinst.org/post/best-songs-to-play-at-a-house-party.html)\n",
|
| 200 |
-
"Throwing the perfect house party hinges on the perfect soundtrack. Creating the right atmosphere, one that keeps \n",
|
| 201 |
-
"the energy high and the good times rolling, requires a carefully curated playlist. This isn't just about playing \n",
|
| 202 |
-
"any old tunes; it's about selecting songs with staying power, tracks that span genres and generations, instantly \n",
|
| 203 |
-
"...\n",
|
| 204 |
-
"\n",
|
| 205 |
-
"[Top 25 House Party Songs of All Time | GrooveNexus](https://www.groovenexus.com/top-playlist/house-party-songs/)\n",
|
| 206 |
-
"Houses are the safest place to party and hang out with friends while playing the best house party songs. Imagine a \n",
|
| 207 |
-
"close circle where music truly comes alive and jive up with the house party songs of all time. It is fun to plan \n",
|
| 208 |
-
"and host an in-house party. We usually come across many iconic videos that people host in their living rooms and \n",
|
| 209 |
-
"have ...\n",
|
| 210 |
-
"\n",
|
| 211 |
-
"[10 Best Songs for a House Party, Ranked 2023 - Tone \n",
|
| 212 |
-
"Start](https://www.tonestart.com/best-songs-for-a-house-party/)\n",
|
| 213 |
-
"The record has a great replayable quality and a danceable tempo that makes it one of the best songs for a house \n",
|
| 214 |
-
"party, in my opinion. 7. Pon de Replay - Rihanna. The instrumental alone is enough to get people moving, and the \n",
|
| 215 |
-
"record is a staple from the earlier part of Rihanna's career. Released in the late 2000s, the song perfectly ...\n",
|
| 216 |
-
"\n",
|
| 217 |
-
"[House Party - 80 Songs - playlist by Spotify](https://open.spotify.com/playlist/37i9dQZF1DXd5DCuoVuFY3)\n",
|
| 218 |
-
"Playlist ยท House Party ยท 80 items ยท 562.5K saves. Playlist ยท Spotify ยท 80 items ยท 562.5K saves Playlist ยท House \n",
|
| 219 |
-
"Party ยท 80 items ยท 562.5K saves ... Sign up to get unlimited songs and podcasts with occasional ads. No credit card\n",
|
| 220 |
-
"needed. Sign up free-:--Change progress-:-- ... First Party Targeting Cookies.\n",
|
| 221 |
-
"\n",
|
| 222 |
-
"[17 Best House Songs of All Time: Essential House Tracks](https://leveltunes.com/house-songs-of-all-time/)\n",
|
| 223 |
-
"Here are the best house songs of all time that you can check out: ... 50 best frat party songs for every DJ. Best \n",
|
| 224 |
-
"Songs / By TBone 30 Best Songs for Retirement Party. Best Songs / By TBone Search. Search. Recent Posts. History Of\n",
|
| 225 |
-
"Philippine Music: In-depth journey; 11 Happy Jazz Songs: Swing, Groove, and Smile;\n",
|
| 226 |
-
"\n",
|
| 227 |
-
"[Best Party Songs - House Party Music Playlist (Updated in \n",
|
| 228 |
-
"2025)](https://www.youtube.com/playlist?list=PLo3pNg0eiPc-3MC9VFxy9Kt6eau9ZJTPt)\n",
|
| 229 |
-
"Best Party Songs - House Party Music Playlist (Updated in 2025) If you liked this playlist, we recommend you also \n",
|
| 230 |
-
"listen to these music lists: 1. Summer Pool...\n",
|
| 231 |
-
"\n",
|
| 232 |
-
"Out: None\n",
|
| 233 |
-
"</pre>\n"
|
| 234 |
-
],
|
| 235 |
-
"text/plain": [
|
| 236 |
-
"\u001b[1mExecution logs:\u001b[0m\n",
|
| 237 |
-
"## Search Results\n",
|
| 238 |
-
"\n",
|
| 239 |
-
"[The 75 Best Party Songs That Will Get Everyone Dancing - \n",
|
| 240 |
-
"Gear4music](https://www.gear4music.com/blog/best-party-songs/)\n",
|
| 241 |
-
"The best party songs 1. \"September\" - Earth, Wind & Fire (1978) Quite possibly the best party song. An infectious \n",
|
| 242 |
-
"mix of funk and soul, \"September\" is celebrated for its upbeat melody and \"ba-dee-ya\" chorus, making it a timeless \n",
|
| 243 |
-
"dance favorite.\n",
|
| 244 |
-
"\n",
|
| 245 |
-
"[200 Classic House Party Songs Everyone Knows | The Best ... - \n",
|
| 246 |
-
"iSpyTunes](https://www.ispytunes.com/post/house-party-songs)\n",
|
| 247 |
-
"Next, let's get into reviewing 20 of the best songs for your next house party. 1. rockstar by Post Malone (feat. 21\n",
|
| 248 |
-
"Savage) \"rockstar\" by Post Malone (feat. 21 Savage) is an incredibly popular song with a great instrumental and an \n",
|
| 249 |
-
"infectious chorus, which makes it a perfect song for playing at parties. The whole song is like a giant energy ...\n",
|
| 250 |
-
"\n",
|
| 251 |
-
"[Best Songs To Party: DJ's Ultimate Party Songs Playlist - \n",
|
| 252 |
-
"Top40Weekly.com](https://top40weekly.com/best-songs-to-party/)\n",
|
| 253 |
-
"Don't forget the music! We've compiled the best songs to party that are sure to get everyone in the mood to dance \n",
|
| 254 |
-
"and have a good time. Skip to content. Search for: 1950. Top Songs from 1955; ... a house party, or just jamming \n",
|
| 255 |
-
"out with friends, this song will ignite the party vibe and create unforgettable memories. 4 - \"Get Lucky ...\n",
|
| 256 |
-
"\n",
|
| 257 |
-
"[40 Best Party Songs | Songs To Dance To, Ranked By Our Editors - Time \n",
|
| 258 |
-
"Out](https://www.timeout.com/music/best-party-songs)\n",
|
| 259 |
-
"The best is when you go for the extended version, and find yourself in the midst of the intro for about 11 minutes.\n",
|
| 260 |
-
"But whichever version you go for, this is the party song, in every way. She ...\n",
|
| 261 |
-
"\n",
|
| 262 |
-
"[30 Best House Party Songs: The Ultimate \n",
|
| 263 |
-
"Playlist](https://rageshreemusicinst.org/post/best-songs-to-play-at-a-house-party.html)\n",
|
| 264 |
-
"Throwing the perfect house party hinges on the perfect soundtrack. Creating the right atmosphere, one that keeps \n",
|
| 265 |
-
"the energy high and the good times rolling, requires a carefully curated playlist. This isn't just about playing \n",
|
| 266 |
-
"any old tunes; it's about selecting songs with staying power, tracks that span genres and generations, instantly \n",
|
| 267 |
-
"...\n",
|
| 268 |
-
"\n",
|
| 269 |
-
"[Top 25 House Party Songs of All Time | GrooveNexus](https://www.groovenexus.com/top-playlist/house-party-songs/)\n",
|
| 270 |
-
"Houses are the safest place to party and hang out with friends while playing the best house party songs. Imagine a \n",
|
| 271 |
-
"close circle where music truly comes alive and jive up with the house party songs of all time. It is fun to plan \n",
|
| 272 |
-
"and host an in-house party. We usually come across many iconic videos that people host in their living rooms and \n",
|
| 273 |
-
"have ...\n",
|
| 274 |
-
"\n",
|
| 275 |
-
"[10 Best Songs for a House Party, Ranked 2023 - Tone \n",
|
| 276 |
-
"Start](https://www.tonestart.com/best-songs-for-a-house-party/)\n",
|
| 277 |
-
"The record has a great replayable quality and a danceable tempo that makes it one of the best songs for a house \n",
|
| 278 |
-
"party, in my opinion. 7. Pon de Replay - Rihanna. The instrumental alone is enough to get people moving, and the \n",
|
| 279 |
-
"record is a staple from the earlier part of Rihanna's career. Released in the late 2000s, the song perfectly ...\n",
|
| 280 |
-
"\n",
|
| 281 |
-
"[House Party - 80 Songs - playlist by Spotify](https://open.spotify.com/playlist/37i9dQZF1DXd5DCuoVuFY3)\n",
|
| 282 |
-
"Playlist ยท House Party ยท 80 items ยท 562.5K saves. Playlist ยท Spotify ยท 80 items ยท 562.5K saves Playlist ยท House \n",
|
| 283 |
-
"Party ยท 80 items ยท 562.5K saves ... Sign up to get unlimited songs and podcasts with occasional ads. No credit card\n",
|
| 284 |
-
"needed. Sign up free-:--Change progress-:-- ... First Party Targeting Cookies.\n",
|
| 285 |
-
"\n",
|
| 286 |
-
"[17 Best House Songs of All Time: Essential House Tracks](https://leveltunes.com/house-songs-of-all-time/)\n",
|
| 287 |
-
"Here are the best house songs of all time that you can check out: ... 50 best frat party songs for every DJ. Best \n",
|
| 288 |
-
"Songs / By TBone 30 Best Songs for Retirement Party. Best Songs / By TBone Search. Search. Recent Posts. History Of\n",
|
| 289 |
-
"Philippine Music: In-depth journey; 11 Happy Jazz Songs: Swing, Groove, and Smile;\n",
|
| 290 |
-
"\n",
|
| 291 |
-
"[Best Party Songs - House Party Music Playlist (Updated in \n",
|
| 292 |
-
"2025)](https://www.youtube.com/playlist?list=PLo3pNg0eiPc-3MC9VFxy9Kt6eau9ZJTPt)\n",
|
| 293 |
-
"Best Party Songs - House Party Music Playlist (Updated in 2025) If you liked this playlist, we recommend you also \n",
|
| 294 |
-
"listen to these music lists: 1. Summer Pool...\n",
|
| 295 |
-
"\n",
|
| 296 |
-
"Out: None\n"
|
| 297 |
-
]
|
| 298 |
-
},
|
| 299 |
-
"metadata": {},
|
| 300 |
-
"output_type": "display_data"
|
| 301 |
-
},
|
| 302 |
-
{
|
| 303 |
-
"data": {
|
| 304 |
-
"text/html": [
|
| 305 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 1: Duration 7.53 seconds| Input tokens: 2,052 | Output tokens: 89]</span>\n",
|
| 306 |
-
"</pre>\n"
|
| 307 |
-
],
|
| 308 |
-
"text/plain": [
|
| 309 |
-
"\u001b[2m[Step 1: Duration 7.53 seconds| Input tokens: 2,052 | Output tokens: 89]\u001b[0m\n"
|
| 310 |
-
]
|
| 311 |
-
},
|
| 312 |
-
"metadata": {},
|
| 313 |
-
"output_type": "display_data"
|
| 314 |
-
},
|
| 315 |
-
{
|
| 316 |
-
"data": {
|
| 317 |
-
"text/html": [
|
| 318 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">2</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ</span>\n",
|
| 319 |
-
"</pre>\n"
|
| 320 |
-
],
|
| 321 |
-
"text/plain": [
|
| 322 |
-
"\u001b[38;2;212;183;2mโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m2\u001b[0m\u001b[38;2;212;183;2m โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\u001b[0m\n"
|
| 323 |
-
]
|
| 324 |
-
},
|
| 325 |
-
"metadata": {},
|
| 326 |
-
"output_type": "display_data"
|
| 327 |
-
},
|
| 328 |
-
{
|
| 329 |
-
"data": {
|
| 330 |
-
"text/html": [
|
| 331 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> โ <span style=\"font-weight: bold\">Executing parsed code:</span> โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 332 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># Extracting the top recommendations from the search results</span><span style=\"background-color: #272822\"> </span> \n",
|
| 333 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> []</span><span style=\"background-color: #272822\"> </span> \n",
|
| 334 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 335 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># From \"The 75 Best Party Songs That Will Get Everyone Dancing - Gear4music\"</span><span style=\"background-color: #272822\"> </span> \n",
|
| 336 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"1. September - Earth, Wind & Fire (1978)\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 337 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 338 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># From \"200 Classic House Party Songs Everyone Knows | The Best ... - iSpyTunes\"</span><span style=\"background-color: #272822\"> </span> \n",
|
| 339 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"2. rockstar by Post Malone (feat. 21 Savage)\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 340 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 341 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># From \"Best Songs To Party: DJ's Ultimate Party Songs Playlist - Top40Weekly.com\"</span><span style=\"background-color: #272822\"> </span> \n",
|
| 342 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"3. Get Lucky - Daft Punk ft. Pharrell Williams\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 343 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 344 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># From \"40 Best Party Songs | Songs To Dance To, Ranked By Our Editors - Time Out\"</span><span style=\"background-color: #272822\"> </span> \n",
|
| 345 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"4. Heart of Gold - Neil Diamond\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 346 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 347 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># From \"30 Best House Party Songs: The Ultimate Playlist\"</span><span style=\"background-color: #272822\"> </span> \n",
|
| 348 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"5. Eye of the Tiger - Survivor\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 349 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 350 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># From \"Top 25 House Party Songs of All Time | GrooveNexus\"</span><span style=\"background-color: #272822\"> </span> \n",
|
| 351 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"6. Uptown Funk - Mark Ronson ft. Bruno Mars\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 352 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 353 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># From \"10 Best Songs for a House Party, Ranked 2023 - Tone Start\"</span><span style=\"background-color: #272822\"> </span> \n",
|
| 354 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"7. Pon de Replay - Rihanna\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 355 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 356 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># From \"House Party - 80 Songs - playlist by Spotify\"</span><span style=\"background-color: #272822\"> </span> \n",
|
| 357 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># Spotify playlist, will add a couple of songs from it</span><span style=\"background-color: #272822\"> </span> \n",
|
| 358 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"8. Happy - Pharrell Williams\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 359 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">recommendations</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">append(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"9. Thriller - Michael Jackson\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 360 |
-
" <span style=\"background-color: #272822\"> </span> \n",
|
| 361 |
-
" <span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># Compiling the final list of recommendations</span><span style=\"background-color: #272822\"> </span> \n",
|
| 362 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"Final list of music recommendations:\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 363 |
-
" <span style=\"color: #66d9ef; text-decoration-color: #66d9ef; background-color: #272822\">for</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> i, song </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">in</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> enumerate(recommendations, start</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">1</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">):</span><span style=\"background-color: #272822\"> </span> \n",
|
| 364 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> print(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">f\"{</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">i</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">}. {</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">song</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">}\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 365 |
-
" โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 366 |
-
"</pre>\n"
|
| 367 |
-
],
|
| 368 |
-
"text/plain": [
|
| 369 |
-
" โ \u001b[1mExecuting parsed code:\u001b[0m โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 370 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# Extracting the top recommendations from the search results\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 371 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m[\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m]\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 372 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 373 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# From \"The 75 Best Party Songs That Will Get Everyone Dancing - Gear4music\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 374 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m1. September - Earth, Wind & Fire (1978)\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 375 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 376 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# From \"200 Classic House Party Songs Everyone Knows | The Best ... - iSpyTunes\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 377 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m2. rockstar by Post Malone (feat. 21 Savage)\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 378 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 379 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# From \"Best Songs To Party: DJ's Ultimate Party Songs Playlist - Top40Weekly.com\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 380 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m3. Get Lucky - Daft Punk ft. Pharrell Williams\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 381 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 382 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# From \"40 Best Party Songs | Songs To Dance To, Ranked By Our Editors - Time Out\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 383 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m4. Heart of Gold - Neil Diamond\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 384 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 385 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# From \"30 Best House Party Songs: The Ultimate Playlist\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 386 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m5. Eye of the Tiger - Survivor\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 387 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 388 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# From \"Top 25 House Party Songs of All Time | GrooveNexus\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 389 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m6. Uptown Funk - Mark Ronson ft. Bruno Mars\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 390 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 391 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# From \"10 Best Songs for a House Party, Ranked 2023 - Tone Start\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 392 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m7. Pon de Replay - Rihanna\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 393 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 394 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# From \"House Party - 80 Songs - playlist by Spotify\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 395 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# Spotify playlist, will add a couple of songs from it\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 396 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m8. Happy - Pharrell Williams\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 397 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mappend\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m9. Thriller - Michael Jackson\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 398 |
-
" \u001b[48;2;39;40;34m \u001b[0m \n",
|
| 399 |
-
" \u001b[38;2;149;144;119;48;2;39;40;34m# Compiling the final list of recommendations\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 400 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mFinal list of music recommendations:\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 401 |
-
" \u001b[38;2;102;217;239;48;2;39;40;34mfor\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mi\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m,\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34msong\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34min\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34menumerate\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mrecommendations\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m,\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mstart\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m1\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m:\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 402 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mf\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m{\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mi\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m}\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m. \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m{\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34msong\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m}\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 403 |
-
" โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n"
|
| 404 |
-
]
|
| 405 |
-
},
|
| 406 |
-
"metadata": {},
|
| 407 |
-
"output_type": "display_data"
|
| 408 |
-
},
|
| 409 |
-
{
|
| 410 |
-
"data": {
|
| 411 |
-
"text/html": [
|
| 412 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Execution logs:</span>\n",
|
| 413 |
-
"Final list of music recommendations:\n",
|
| 414 |
-
"1. 1. September - Earth, Wind & Fire (1978)\n",
|
| 415 |
-
"2. 2. rockstar by Post Malone (feat. 21 Savage)\n",
|
| 416 |
-
"3. 3. Get Lucky - Daft Punk ft. Pharrell Williams\n",
|
| 417 |
-
"4. 4. Heart of Gold - Neil Diamond\n",
|
| 418 |
-
"5. 5. Eye of the Tiger - Survivor\n",
|
| 419 |
-
"6. 6. Uptown Funk - Mark Ronson ft. Bruno Mars\n",
|
| 420 |
-
"7. 7. Pon de Replay - Rihanna\n",
|
| 421 |
-
"8. 8. Happy - Pharrell Williams\n",
|
| 422 |
-
"9. 9. Thriller - Michael Jackson\n",
|
| 423 |
-
"\n",
|
| 424 |
-
"Out: None\n",
|
| 425 |
-
"</pre>\n"
|
| 426 |
-
],
|
| 427 |
-
"text/plain": [
|
| 428 |
-
"\u001b[1mExecution logs:\u001b[0m\n",
|
| 429 |
-
"Final list of music recommendations:\n",
|
| 430 |
-
"1. 1. September - Earth, Wind & Fire (1978)\n",
|
| 431 |
-
"2. 2. rockstar by Post Malone (feat. 21 Savage)\n",
|
| 432 |
-
"3. 3. Get Lucky - Daft Punk ft. Pharrell Williams\n",
|
| 433 |
-
"4. 4. Heart of Gold - Neil Diamond\n",
|
| 434 |
-
"5. 5. Eye of the Tiger - Survivor\n",
|
| 435 |
-
"6. 6. Uptown Funk - Mark Ronson ft. Bruno Mars\n",
|
| 436 |
-
"7. 7. Pon de Replay - Rihanna\n",
|
| 437 |
-
"8. 8. Happy - Pharrell Williams\n",
|
| 438 |
-
"9. 9. Thriller - Michael Jackson\n",
|
| 439 |
-
"\n",
|
| 440 |
-
"Out: None\n"
|
| 441 |
-
]
|
| 442 |
-
},
|
| 443 |
-
"metadata": {},
|
| 444 |
-
"output_type": "display_data"
|
| 445 |
-
},
|
| 446 |
-
{
|
| 447 |
-
"data": {
|
| 448 |
-
"text/html": [
|
| 449 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 2: Duration 24.59 seconds| Input tokens: 5,337 | Output tokens: 503]</span>\n",
|
| 450 |
-
"</pre>\n"
|
| 451 |
-
],
|
| 452 |
-
"text/plain": [
|
| 453 |
-
"\u001b[2m[Step 2: Duration 24.59 seconds| Input tokens: 5,337 | Output tokens: 503]\u001b[0m\n"
|
| 454 |
-
]
|
| 455 |
-
},
|
| 456 |
-
"metadata": {},
|
| 457 |
-
"output_type": "display_data"
|
| 458 |
-
},
|
| 459 |
-
{
|
| 460 |
-
"data": {
|
| 461 |
-
"text/html": [
|
| 462 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702\">โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ </span><span style=\"font-weight: bold\">Step </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span><span style=\"color: #d4b702; text-decoration-color: #d4b702\"> โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ</span>\n",
|
| 463 |
-
"</pre>\n"
|
| 464 |
-
],
|
| 465 |
-
"text/plain": [
|
| 466 |
-
"\u001b[38;2;212;183;2mโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \u001b[0m\u001b[1mStep \u001b[0m\u001b[1;36m3\u001b[0m\u001b[38;2;212;183;2m โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\u001b[0m\n"
|
| 467 |
-
]
|
| 468 |
-
},
|
| 469 |
-
"metadata": {},
|
| 470 |
-
"output_type": "display_data"
|
| 471 |
-
},
|
| 472 |
-
{
|
| 473 |
-
"data": {
|
| 474 |
-
"text/html": [
|
| 475 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> โ <span style=\"font-weight: bold\">Executing parsed code:</span> โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 476 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">final_answer(</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"Final list of music recommendations for a party at Wayne's mansion:</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 477 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"1. September - Earth, Wind & Fire (1978)</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 478 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"2. rockstar - Post Malone (feat. 21 Savage)</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 479 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"3. Get Lucky - Daft Punk ft. Pharrell Williams</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 480 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"4. Heart of Gold - Neil Diamond</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 481 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"5. Eye of the Tiger - Survivor</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 482 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"6. Uptown Funk - Mark Ronson ft. Bruno Mars</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 483 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"7. Pon de Replay - Rihanna</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 484 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"8. Happy - Pharrell Williams</span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">\\n</span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"background-color: #272822\"> </span> \n",
|
| 485 |
-
" <span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"9. Thriller - Michael Jackson\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">)</span><span style=\"background-color: #272822\"> </span> \n",
|
| 486 |
-
" โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 487 |
-
"</pre>\n"
|
| 488 |
-
],
|
| 489 |
-
"text/plain": [
|
| 490 |
-
" โ \u001b[1mExecuting parsed code:\u001b[0m โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n",
|
| 491 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34mfinal_answer\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mFinal list of music recommendations for a party at Wayne\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m'\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34ms mansion:\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 492 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m1. September - Earth, Wind & Fire (1978)\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 493 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m2. rockstar - Post Malone (feat. 21 Savage)\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 494 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m3. Get Lucky - Daft Punk ft. Pharrell Williams\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 495 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m4. Heart of Gold - Neil Diamond\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 496 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m5. Eye of the Tiger - Survivor\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 497 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m6. Uptown Funk - Mark Ronson ft. Bruno Mars\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 498 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m7. Pon de Replay - Rihanna\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 499 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m8. Happy - Pharrell Williams\u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m\\n\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 500 |
-
" \u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m9. Thriller - Michael Jackson\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m \n",
|
| 501 |
-
" โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ \n"
|
| 502 |
-
]
|
| 503 |
-
},
|
| 504 |
-
"metadata": {},
|
| 505 |
-
"output_type": "display_data"
|
| 506 |
-
},
|
| 507 |
-
{
|
| 508 |
-
"data": {
|
| 509 |
-
"text/html": [
|
| 510 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">Out - Final answer: Final list of music recommendations for a party at Wayne's mansion:</span>\n",
|
| 511 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">1. September - Earth, Wind & Fire (1978)</span>\n",
|
| 512 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">2. rockstar - Post Malone (feat. 21 Savage)</span>\n",
|
| 513 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">3. Get Lucky - Daft Punk ft. Pharrell Williams</span>\n",
|
| 514 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">4. Heart of Gold - Neil Diamond</span>\n",
|
| 515 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">5. Eye of the Tiger - Survivor</span>\n",
|
| 516 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">6. Uptown Funk - Mark Ronson ft. Bruno Mars</span>\n",
|
| 517 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">7. Pon de Replay - Rihanna</span>\n",
|
| 518 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">8. Happy - Pharrell Williams</span>\n",
|
| 519 |
-
"<span style=\"color: #d4b702; text-decoration-color: #d4b702; font-weight: bold\">9. Thriller - Michael Jackson</span>\n",
|
| 520 |
-
"</pre>\n"
|
| 521 |
-
],
|
| 522 |
-
"text/plain": [
|
| 523 |
-
"\u001b[1;38;2;212;183;2mOut - Final answer: Final list of music recommendations for a party at Wayne's mansion:\u001b[0m\n",
|
| 524 |
-
"\u001b[1;38;2;212;183;2m1. September - Earth, Wind & Fire (1978)\u001b[0m\n",
|
| 525 |
-
"\u001b[1;38;2;212;183;2m2. rockstar - Post Malone (feat. 21 Savage)\u001b[0m\n",
|
| 526 |
-
"\u001b[1;38;2;212;183;2m3. Get Lucky - Daft Punk ft. Pharrell Williams\u001b[0m\n",
|
| 527 |
-
"\u001b[1;38;2;212;183;2m4. Heart of Gold - Neil Diamond\u001b[0m\n",
|
| 528 |
-
"\u001b[1;38;2;212;183;2m5. Eye of the Tiger - Survivor\u001b[0m\n",
|
| 529 |
-
"\u001b[1;38;2;212;183;2m6. Uptown Funk - Mark Ronson ft. Bruno Mars\u001b[0m\n",
|
| 530 |
-
"\u001b[1;38;2;212;183;2m7. Pon de Replay - Rihanna\u001b[0m\n",
|
| 531 |
-
"\u001b[1;38;2;212;183;2m8. Happy - Pharrell Williams\u001b[0m\n",
|
| 532 |
-
"\u001b[1;38;2;212;183;2m9. Thriller - Michael Jackson\u001b[0m\n"
|
| 533 |
-
]
|
| 534 |
-
},
|
| 535 |
-
"metadata": {},
|
| 536 |
-
"output_type": "display_data"
|
| 537 |
-
},
|
| 538 |
-
{
|
| 539 |
-
"data": {
|
| 540 |
-
"text/html": [
|
| 541 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">[Step 3: Duration 11.96 seconds| Input tokens: 9,629 | Output tokens: 716]</span>\n",
|
| 542 |
-
"</pre>\n"
|
| 543 |
-
],
|
| 544 |
-
"text/plain": [
|
| 545 |
-
"\u001b[2m[Step 3: Duration 11.96 seconds| Input tokens: 9,629 | Output tokens: 716]\u001b[0m\n"
|
| 546 |
-
]
|
| 547 |
-
},
|
| 548 |
-
"metadata": {},
|
| 549 |
-
"output_type": "display_data"
|
| 550 |
-
},
|
| 551 |
-
{
|
| 552 |
-
"data": {
|
| 553 |
-
"text/plain": [
|
| 554 |
-
"\"Final list of music recommendations for a party at Wayne's mansion:\\n1. September - Earth, Wind & Fire (1978)\\n2. rockstar - Post Malone (feat. 21 Savage)\\n3. Get Lucky - Daft Punk ft. Pharrell Williams\\n4. Heart of Gold - Neil Diamond\\n5. Eye of the Tiger - Survivor\\n6. Uptown Funk - Mark Ronson ft. Bruno Mars\\n7. Pon de Replay - Rihanna\\n8. Happy - Pharrell Williams\\n9. Thriller - Michael Jackson\""
|
| 555 |
-
]
|
| 556 |
-
},
|
| 557 |
-
"execution_count": 5,
|
| 558 |
-
"metadata": {},
|
| 559 |
-
"output_type": "execute_result"
|
| 560 |
-
}
|
| 561 |
-
],
|
| 562 |
"source": [
|
| 563 |
-
"from smolagents import CodeAgent,
|
| 564 |
"\n",
|
| 565 |
-
"model = InferenceClientModel(\n",
|
| 566 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 567 |
")\n",
|
| 568 |
"\n",
|
| 569 |
-
"#agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())\n",
|
| 570 |
-
"agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)\n",
|
| 571 |
"\n",
|
| 572 |
-
"agent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 573 |
]
|
| 574 |
},
|
| 575 |
{
|
|
@@ -616,7 +179,7 @@
|
|
| 616 |
},
|
| 617 |
"outputs": [],
|
| 618 |
"source": [
|
| 619 |
-
"from smolagents import CodeAgent, tool\n",
|
| 620 |
"\n",
|
| 621 |
"@tool\n",
|
| 622 |
"def suggest_menu(occasion: str) -> str:\n",
|
|
@@ -634,7 +197,9 @@
|
|
| 634 |
" else:\n",
|
| 635 |
" return \"Custom menu for the butler.\"\n",
|
| 636 |
"\n",
|
| 637 |
-
"
|
|
|
|
|
|
|
| 638 |
"\n",
|
| 639 |
"agent.run(\"Prepare a formal menu for the party.\")"
|
| 640 |
]
|
|
@@ -650,6 +215,11 @@
|
|
| 650 |
"The menu is ready! ๐ฅ"
|
| 651 |
]
|
| 652 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 653 |
{
|
| 654 |
"cell_type": "markdown",
|
| 655 |
"metadata": {
|
|
|
|
| 34 |
},
|
| 35 |
"outputs": [],
|
| 36 |
"source": [
|
| 37 |
+
"!pip install smolagents duckduckgo-search -U"
|
| 38 |
]
|
| 39 |
},
|
| 40 |
{
|
|
|
|
| 103 |
},
|
| 104 |
{
|
| 105 |
"cell_type": "code",
|
| 106 |
+
"execution_count": null,
|
| 107 |
"metadata": {
|
| 108 |
"colab": {
|
| 109 |
"base_uri": "https://localhost:8080/",
|
|
|
|
| 112 |
"id": "DeBvQBEpx-VO",
|
| 113 |
"outputId": "9c715d2d-fa78-4514-bb08-2c7712951cd4"
|
| 114 |
},
|
| 115 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
"source": [
|
| 117 |
+
"from smolagents import CodeAgent, Tool, WebSearchTool, InferenceClientModel\n",
|
| 118 |
"\n",
|
| 119 |
+
"#model = InferenceClientModel(model_id=\"Qwen/Qwen2.5-Coder-7B-Instruct\", provider=\"nscale\")\n",
|
| 120 |
+
"model = InferenceClientModel()\n",
|
| 121 |
+
"\n",
|
| 122 |
+
"image_generation_tool = Tool.from_space(\n",
|
| 123 |
+
" \"black-forest-labs/FLUX.1-schnell\",\n",
|
| 124 |
+
" name=\"image_generator\",\n",
|
| 125 |
+
" description=\"Generate an image from a prompt\"\n",
|
| 126 |
")\n",
|
| 127 |
"\n",
|
|
|
|
|
|
|
| 128 |
"\n",
|
| 129 |
+
"agent = CodeAgent(tools=[WebSearchTool(), image_generation_tool], model=model)\n",
|
| 130 |
+
"\n",
|
| 131 |
+
"#agent.run(\"\")\n",
|
| 132 |
+
"\n",
|
| 133 |
+
"agent.run(\n",
|
| 134 |
+
" \"Improve this prompt, then generate an image of it.\", additional_args={'user_prompt': 'A rabbit wearing a space suit standing on the moon and having the earth in the background'}\n",
|
| 135 |
+
")"
|
| 136 |
]
|
| 137 |
},
|
| 138 |
{
|
|
|
|
| 179 |
},
|
| 180 |
"outputs": [],
|
| 181 |
"source": [
|
| 182 |
+
"from smolagents import CodeAgent, tool, InferenceClientModel\n",
|
| 183 |
"\n",
|
| 184 |
"@tool\n",
|
| 185 |
"def suggest_menu(occasion: str) -> str:\n",
|
|
|
|
| 197 |
" else:\n",
|
| 198 |
" return \"Custom menu for the butler.\"\n",
|
| 199 |
"\n",
|
| 200 |
+
"model = InferenceClientModel()\n",
|
| 201 |
+
"\n",
|
| 202 |
+
"agent = CodeAgent(tools=[suggest_menu], model=model)\n",
|
| 203 |
"\n",
|
| 204 |
"agent.run(\"Prepare a formal menu for the party.\")"
|
| 205 |
]
|
|
|
|
| 215 |
"The menu is ready! ๐ฅ"
|
| 216 |
]
|
| 217 |
},
|
| 218 |
+
{
|
| 219 |
+
"cell_type": "markdown",
|
| 220 |
+
"metadata": {},
|
| 221 |
+
"source": []
|
| 222 |
+
},
|
| 223 |
{
|
| 224 |
"cell_type": "markdown",
|
| 225 |
"metadata": {
|