This repository contains code for building diverse AI applications using Amazon Bedrock's foundation models.
To get a local copy up and running, follow these simple steps.
- Python 3.9 or higher
- pip
- get Model Access in Amazon Bedrock
Clone the repo
git clone https://github.com/gitmurali/aws-bedrock-generative-ai.git
Install required packages
pip install -r requirements.txt
This repository contains code for demonstrating how to build AI applications using Amazon Bedrock's foundation models.
To generate images using Stable Diffusion, run the following command:
streamlit run image_generation.py
To run in docker container:
sudo docker build . -t generative-ai
sudo docker run -p 8501:8501 -d --rm -v ~/.aws:/root/.aws generative-ai
This will launch a Streamlit app where you can enter prompts to generate images in various styles.
To interact with a chatbot built using Amazon Bedrock, LangChain, and Streamlit, run:
streamlit run chat_bedrock.py
Launch a Streamlit app where you can have a conversation with the chatbot, witnessing AI-powered conversational capabilities.