How to use Streamlit And Gemini AI | Easy frontend for Gemini AI

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
we're going to show you streamlet which is a simple interface which is basically very configurable to get your uh Gemini API working and it's a super simple setup super simple install with a nice clean interface let's go so what we're going to do today is show you the streamlet version of um connecting to Gemini this is going to be hosted on your local computer but you can deploy this to an app someway um but first of all what we're going to do is install anaconda and then I'm going to show you how to um install the remainder of the um tools and software all right so basically what you need to do is go to Anaconda and go to the installation space um andaconda is free and it's basically just a nice um interface uh for you to run your python code all right so you can click on install for Windows I've already installed it so I won't go through it but it's really simple wizard um just click next um as you work through it and um once you've um installed it what what you can do is um head on over to your um command line so we what we can do is just open up our command line over here and just type in Anaconda and what we can do is uh go to the mini all right and what we'll do now is um create a folder so let's got CD uh let's go let go MK um let's just call this Jimmy n all right and we can go into Gemini all right and then what we want to do is um just follow the next couple of steps over here so the information that's uh been made available is on the um Gemini Nexus craft GitHub repository uh so we're going to basically be cloning this and um copying it down into our our environment so let's give that a go all right so let's just go back to our Anaconda space over here and what we want to do is type in the following so get clone and then we're going to pop in the URL and hit enter all right so it's going to copy it into the Nexus uh Gemini Nexus craft so we're going to go into that space now so it's go CD Gemini Nexus craft all right and then what we can do is install the requirements all right so the way you would install the requirements using python is your pip install and then minus r and requirements and hit enter right this may take some time depending on if you've got the applications installed or not and um once it's done it'll um bring you back to your starting point all right the next command that you're going to run really simple streamlet run Gemini dopy and what this will do now is it will open up the streamlet um application and automatically open a website which is running off your local host on a specific port and um if you were on a server or anything like that you could basically just cop this um particular Network URL for your users to use all right so really simple really easy to do all right so the F the the first thing we need to do is um click on which one we want to use we want to use text or we want to use the provision all right but what we need is an API key all right so to get your API key you would basically go over to your um Gemini uh studio so let's just go here and go to ai. gooogle dodev all right so head on over to ai. gooogle dodev and really simple click on get API key and all you want to do is click on the get API key on the left hand side over here and what it will do is it will show you um uh how to get the key so if you've already got a key you can just grab it or you can create a new key in the a in the new project or create an API in the existing project so if you just click it it'll automatically create something for you and um what you can do is come back and um pop it into your uh space over here all right and once you've done that right so this is my API key you hit the enter button and what you can do now is you can set your temperatures um so again your temperature is your um quality of your output so the higher the temperature the more it's going to be creative the less the temperature the less creative it is and this is a great little way for you to um have an interface on your Gemini U models uh so really simple hello Gemini make me a sandwich recipe and let's see what it does all right so you'll notice that it's running on our Local Host connecting up to the Gemini API here's the run and here is your output so really simple really easy to use and um I hope you got a lot of value out of this if you enjoy this content like subscribe and stay tuned for some more awesome stuff
Info
Channel: LevelUp_Plus
Views: 1,156
Rating: undefined out of 5
Keywords: frontend for gemini ai, gemini ai, google gemini demo, streamlit, streamlit chatbot, gemini chatbot
Id: lkASdU_wdnc
Channel Id: undefined
Length: 5min 52sec (352 seconds)
Published: Thu Feb 08 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.