Skip to content

Commit

Permalink
Merge pull request #24 from hugobowne/final-edits
Browse files Browse the repository at this point in the history
Final edits for ODSC APAC
  • Loading branch information
hugobowne authored Aug 13, 2024
2 parents 8ced76e + 24fac25 commit 06d88a0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 48 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Before you begin, make sure you have the following:
- If you exceed the free tier, you may need to purchase additional usage.
- For the latest information on GitHub Codespaces pricing and usage limits, please check the [official GitHub documentation](https://docs.github.com/en/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces).

**Note for Workshop Participants:** If you are taking this workshop at a conference or other event, please check with your instructors or teachers to see if they are providing the API keys for you.
**Note for Workshop Participants:** If you are taking this workshop at a conference or other event, please check with your instructors or teachers to see if they are providing the API keys for you. If you're at ODSC APAC (August, 2024), [complete this form](https://forms.gle/AcaY1dki6Gxpgd4y7) and Hugo will send you credits (expire Aug 20).

## Setting Up the Environment

To get up and running, you can watch the video below and/or follow the instructions:
To get up and running, you can watch the video below and/or follow the instructions (instructions at around 1:50 after motivating demo):



https://github.com/user-attachments/assets/a311c3fd-628b-4c14-aafa-dfeaf8a52885
https://github.com/user-attachments/assets/342b5ee3-c067-4407-9d51-96fab6488863



Expand Down Expand Up @@ -106,10 +106,6 @@ If you encounter any issues:

We welcome contributions to improve this project! Please feel free to submit issues or pull requests.

## License

[Insert appropriate license information here]

---

Happy building! We hope you enjoy creating your first multimodal Gen AI app. If you have any questions or feedback, please don't hesitate to reach out.
84 changes: 43 additions & 41 deletions notebooks/models-everywhere.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"source": [
"- Create a [Groq](https://groq.com/) account and navigate [here to get your API key](https://console.groq.com/keys). They have a free tier with a bunch of LLMs (see screenshot below)!\n",
"- If you'd prefer to use OpenAI, you can do that and get [your API key here](https://platform.openai.com/api-keys).\n",
"- To use the models below as is, you'll need a [Replicate account](https://replicate.com/). If you're using this notebook in a workshop, chances are Hugo is able to provision free Replicate credits for you so ask him, if he hasn't mentioned it.\n",
"- To use the models below as is, you'll need a [Replicate account](https://replicate.com/). If you're using this notebook in a workshop, chances are Hugo is able to provision free Replicate credits for you so ask him, if he hasn't mentioned it. If you're at ODSC APAC (August, 2024), complete [this form](https://forms.gle/AcaY1dki6Gxpgd4y7) and Hugo will send you credits (expire Aug 20)\n",
"- Many of these models [you can also find on HuggingFace](https://huggingface.co/models), if you'd prefer."
]
},
Expand Down Expand Up @@ -99,7 +99,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{'audio_out': 'https://replicate.delivery/czjl/qkXoJrrhbJIXEdblDtEJFjw2AoTefj4UN2tZLWVeVdLYBpjmA/audio.wav'}\n"
"{'audio_out': 'https://replicate.delivery/czjl/swKgub3nE0IALZpzMypqGmBfH3GZDl983qIi07fzwj4aKHSTA/audio.wav'}\n"
]
}
],
Expand Down Expand Up @@ -192,41 +192,43 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Arrrr, here's a short pirate sea shanty for ye:\n",
"\n",
"(Verse 1)\n",
"Oh, we set sail on the \"Black Swan's wake\"\n",
"With a crew o' scurvy dogs and a heart o' ache\n",
"We've got a map and a cunning guile\n",
"To find the treasure, we'll sail for a while\n",
"Oh, we set sail on the Black Swan's tide\n",
"Bound for Spain, where the treasure's hide\n",
"Our crew's as salty as the sea we sail\n",
"We'll plunder and pillage, without fail\n",
"\n",
"(Chorus)\n",
"Heave ho, me hearties, let the anchors go\n",
"Heave ho, me hearties, the wind's in tow\n",
"Heave ho, me hearties, the sun's on our back\n",
"Heave ho, me hearties, the treasure we'll attack\n",
"Heave ho, me hearties, let the anchor go\n",
"In the Caribbean, we'll find our gold, yo\n",
"Heave ho, me hearties, the winds they do blow\n",
"We'll sing and we'll fight, until our victory show\n",
"\n",
"(Verse 2)\n",
"The cogs are creakin', the chains are tight\n",
"We're bound for the island, where the gold will shine bright\n",
"With cutlasses sharp and a wink in our eye\n",
"We'll plunder the riches, or die tryin' to get by\n",
"Our captain's beard is long and gray\n",
"He's fought in battles, night and day\n",
"Our bosun's got a hook for a hand\n",
"He'll make ye walk the plank, if ye don't stand\n",
"\n",
"(Chorus)\n",
"Heave ho, me hearties, let the anchors go\n",
"Heave ho, me hearties, the wind's in tow\n",
"Heave ho, me hearties, the sun's on our back\n",
"Heave ho, me hearties, the treasure we'll attack\n",
"Heave ho, me hearties, let the anchor go\n",
"In the Caribbean, we'll find our gold, yo\n",
"Heave ho, me hearties, the winds they do blow\n",
"We'll sing and we'll fight, until our victory show\n",
"\n",
"(Bridge)\n",
"Yarrr, we've battled storms and fought our share\n",
"Of battles with the Kraken, and the sea dogs' glare\n",
"But we'll never give in, nor ever give up the quest\n",
"For the treasure's callin', and we must pass the test\n",
"So raise yer tankards, me hearties all\n",
"And toast to the sea, and the courage we'll call\n",
"For we be pirates, bold and true\n",
"And our legend will live, forever anew\n",
"\n",
"(Chorus)\n",
"Heave ho, me hearties, let the anchors go\n",
"Heave ho, me hearties, the wind's in tow\n",
"Heave ho, me hearties, the sun's on our back\n",
"Heave ho, me hearties, the treasure we'll attack\n"
"Heave ho, me hearties, let the anchor go\n",
"In the Caribbean, we'll find our gold, yo\n",
"Heave ho, me hearties, the winds they do blow\n",
"We'll sing and we'll fight, until our victory show\n"
]
}
],
Expand All @@ -244,7 +246,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{'audio_out': 'https://replicate.delivery/czjl/utMjOV1tA46DBJRcfapVYCIAYqrTjsCjEwABYVfrFVg0h0RTA/audio.wav'}\n"
"{'audio_out': 'https://replicate.delivery/czjl/GTHvkAE45ELrIl2But8AJwTveBpeejReSLDXJpUB6gY3scINB/audio.wav'}\n"
]
}
],
Expand Down Expand Up @@ -300,7 +302,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"https://replicate.delivery/yhqm/VwBSroelZ40WTiegPajrzCScf0CHT9K6yCZKMGmIeH0yLSHNB/out.mp3\n"
"https://replicate.delivery/yhqm/ToWKm0N4lUqFLh8N8nh9k4fhzyz8veKeHe0Lkrf2wxlFc5QaC/out.mp3\n"
]
}
],
Expand Down Expand Up @@ -329,7 +331,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"https://replicate.delivery/yhqm/tn92XRiUQUZmEVe3Gb7B2ffKzEafknfyhh2o8zwb8o9NikOaC/out.mp3\n"
"https://replicate.delivery/yhqm/f3gL4sACCDx5RaFu8MF5wsnhz8vqWROjfTcBw5PscPBqMHSTA/out.mp3\n"
]
}
],
Expand Down Expand Up @@ -373,7 +375,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{'audio': 'https://replicate.delivery/czjl/0USXXIEfI60cDi1aUee4PvswzzexTgPe5AdfjE1ZCyFmGJd0E/gen_sound.wav', 'spectrogram': 'https://replicate.delivery/czjl/Uor64JTeqh1UWikhhofJmTh3G2nCXPQXKbCrcCf2Bqp2IpjmA/spectrogram.jpg'}\n"
"{'audio': 'https://replicate.delivery/czjl/G2OwfkftGzomoETExQylu2tXMFvmPWtMqfbYYJ47BPvnZOkmA/gen_sound.wav', 'spectrogram': 'https://replicate.delivery/czjl/pOiQNgILoHZ4G9e40ejnBefju9W3RBbBHvSIWdBT4BcMzcINB/spectrogram.jpg'}\n"
]
}
],
Expand Down Expand Up @@ -438,7 +440,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"['https://replicate.delivery/pbxt/zWNJ3cURdgb3MVLEqSO2veRfvsoV86SNnSqueel6M5eM3kOaC/R8__00001_.webp']\n"
"['https://replicate.delivery/pbxt/2C3d46eff6ITXIJf3QCf0KteMMFiYUmtdzAefNc9zC4V1MHSTA/R8__00001_.webp']\n"
]
}
],
Expand Down Expand Up @@ -471,7 +473,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{'audio_out': 'https://replicate.delivery/czjl/6mm9Of8I6jUbKSfJRu72mbpDaWg1Ikh54Gex5e2AeU2f0Jd0E/audio.wav'}\n"
"{'audio_out': 'https://replicate.delivery/czjl/bUffZN42SoioX0S9lVV9s4hKH3fL6sx4w1Dge1qGYvtk1cINB/audio.wav'}\n"
]
}
],
Expand Down Expand Up @@ -513,7 +515,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"https://replicate.delivery/yhqm/d7H1tBpfjfoPbkspgqw3fDfeeQuX6II5prineWU1HqcxMU6oJA/out.mp3\n"
"https://replicate.delivery/yhqm/Du1yhfPBxM3XLS17tbC7x7yyOe2rOfsRZRsgGOR0bb7e5cINB/out.mp3\n"
]
}
],
Expand Down Expand Up @@ -667,9 +669,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"['https://replicate.delivery/pbxt/tsOFefkbVjtQt0fBwMAN2va8vKTynZgCToAYCeHqdhz3nSHNB/R8__00001_.webp']\n",
"{'audio_out': 'https://replicate.delivery/czjl/Tz52jg7f86yyPCwfdbogwRhnfExD4BNFFlNpMsEGMyYeoSHNB/audio.wav'}\n",
"https://replicate.delivery/yhqm/igcvsNxfwT2kXCTtIaQDmnERuXg6a4q3Qw7TyQWqWtNqV6oJA/out.mp3\n"
"['https://replicate.delivery/pbxt/qhe4MITqZGylCyKPeY8LHa86I6ep31HXV7AQh5z9oEPEdOkmA/R8__00001_.webp']\n",
"{'audio_out': 'https://replicate.delivery/czjl/u0QcO80BT9quEloJYuXzCKLTUaNloq9qrLpm4WP7fplanDpJA/audio.wav'}\n",
"https://replicate.delivery/yhqm/0Jyd5dzh5qJWMZfx8GMnsDkrKwoy95zo9abqp4oSoedcQHSTA/out.mp3\n"
]
}
],
Expand All @@ -695,11 +697,11 @@
"output_type": "stream",
"text": [
"Epic Realism Output:\n",
"['https://replicate.delivery/pbxt/bDyvJtzNTTL0BZ7RDf4iwtAnMBcld1oGBjDDPGAswHJsV6oJA/R8__00001_.webp']\n",
"['https://replicate.delivery/pbxt/ap5vInR47d7VAhnVO3gzhPv3ltKwZNueDufEUBAxyLFegOkmA/R8__00001_.webp']\n",
"Meta MusicGen Output:\n",
"https://replicate.delivery/yhqm/0ViYMJoNoe0xXCOscAnB6dwZR8uJou2MCKHOqJZ6flzeYpjmA/out.mp3\n",
"https://replicate.delivery/yhqm/RQYRBFXtyRr7ChSfn2rpkDwZrBwMgZVE9LyX48YXkF6zoDpJA/out.mp3\n",
"Suno Bark Output:\n",
"{'audio_out': 'https://replicate.delivery/czjl/FHxwoMFdGV6vNBbpakk5UWaaq2oeNDvmfXqjCCDQ29S2s0RTA/audio.wav'}\n"
"{'audio_out': 'https://replicate.delivery/czjl/X4tGcQZIn0rjENB0hDFr5nSlzorIcHRem5xzjdGfeXx7jOkmA/audio.wav'}\n"
]
}
],
Expand Down Expand Up @@ -741,7 +743,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"https://replicate.delivery/yhqm/u6chBKBnYZqAKZhI0CpnyGHGgJzqfPeZW07AmUCUlWSqv0RTA/out.mp4\n"
"https://replicate.delivery/yhqm/ghKmg6PI2s7fBS1mkWwJe1a9jD5V1MpisDZ0hGB2sX12UHSTA/out.mp4\n"
]
}
],
Expand Down Expand Up @@ -779,7 +781,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.1"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 06d88a0

Please sign in to comment.