Create a chat interface using Streamlit and Google Gemini to explore large language chat models and their applications.
- Python version 3.11 or above
- Streamlit Documentation
- Google Cloud account
- Vertexai Documentation
- Go to the Google Cloud Platform and select "Get Started for free".
- Sign in using your Google Account and complete the billing requirements.
- Create a new project.
- Navigation -> Artificial Intelligence -> Vertex AI -> Enable All Recommended APIs
- Install the Google SDK using this link.
- Run the following command to initialize the SDK:
gcloud init
- Sign in using your Google Account credentials.
- Select an existing project or Create a new project
- Install the streamlit framework
pip install streamlit
- In the project, we are using Gemini Pro as the LLM.
- Use the project ID instead of the project name, like this:
project = "project_id"
. This helps avoid encountering a 403 permission denied error.
- A GitHub repository for the project containing all the project files.
- Loom Video to show the approach. Loom Link
Special thanks to the Radical AI team for allowing me to work on this AI Mission.