From the course: Creating AI Applications with Python and GitHub Models
Using GitHub spaces
From the course: Creating AI Applications with Python and GitHub Models
Using GitHub spaces
- [Instructor] Imagine you've been tasked with creating a fully functional AI app by tomorrow morning. Now, like me, you have no experience in web development. And in the next few videos, I'll show you one way of going about this using the GitHub ecosystem. Now, we need a couple of things to create an app, right? You'll need a text editor, the Python packages that your app will use, and then some way of accessing the large language models using their API. Now, whenever I need to create a prototype for an AI app, instead of spending hours setting up my development environment, I just use GitHub codespaces. So that's github.com/codespaces. And it's my personal cloud-based workstation that I can access from anywhere, even on a different device, as long as I have an internet connection. Now, especially if I'm working with a team, everyone has the same environment and I don't have problems like, you know, it works on my machine, but it doesn't work on someone else's. So the first thing we need to do is to head over to GitHub. So if you don't have a GitHub account, just create one. And I'm going to sign in. I'm going to demonstrate the step-by-step process for setting up a GitHub repo and using codespaces to work with GitHub models. You can also go directly to the course, GitHub Repo, to see the configuration already in place. I've also included the coding files in the repo for you. And let me go ahead and create a new repository. Let me just call this Explain Jokes. I'm going to add a README file and I want to add a .gitignore 'cause I'm going to code everything in Python. And let me go ahead and create my repository. Right, and I need to just select the owner as myself and select Create Repository. Okay, so my repository is called Explain Jokes. So let me head over to github.com/codespaces and I'm going to go ahead and create a new codespace. So I'm going to select the repositories. I'm going to select the repository that I've just created. Explain Jokes. Now, because I'm based in the UK, my closest region is going to be Europe West, and 2-core for my machine type is plenty. So go ahead and select Create Codespace. And that's it. After a couple of seconds, I will have my working text editor that's available in the cloud. Alright, so we've seen that it's easy to get started with creating our app using GitHub codespaces.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Using GitHub spaces2m 29s
-
(Locked)
Challenge: Choose your LLM18s
-
(Locked)
Solution: Choose your LLM1m 25s
-
(Locked)
Challenge: Create your app45s
-
(Locked)
Solution: Create your app5m 39s
-
(Locked)
Challenge: Make changes to the code as required29s
-
(Locked)
Solution: Make changes to the code as required4m 49s
-
(Locked)
Deploy the app to production4m 20s
-
-