Install boto3 (the AWS SDK for Python), Langchain, and Streamlit:
pip install boto3 streamlit langchain
Make sure you have access to Bedrock models you're testing by requesting in the console. Then, configure the modelID with the model of your choice and set the region with region_name.
Run the Bedrock model locally as a chatbot: streamlit run <yourfile.py>