Skip to content

A simple interface to invoke Claude 3 models in AWS Bedrock

Notifications You must be signed in to change notification settings

Vivicorp-AWS/aws-bedrock-streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streamlit Frontend for Amazon Bedrock

| 🚧 Under heavy construction 🚧

Usage

Launch

streamlit run main.py

Launch with debug mode

Add query parameter "debug" ans assigned as "true" in the URL. E.g.: http://localhost:8501/?debug=true.

Always rerun the program when script changes

streamlit run --server.runOnSave true main.py

Pre-selected a AWS credential profile

Add query parameter "profile" and assigned as the name of the profile in the URL. E.g: http://localhost:8501/?profile=default

Contribution / Developer Guides

Determine whether to show debug information or not

Verify the query parameter "debug" is set in the URL:

if st.query_params.get('debug'):
    # Show debug information widget

Create clients from custom Session object

The AWS credential will assigned in the sidebar and stored as a Streamlit's Session State, fetch by calling st.session_state['aws_session'] then create low-level client from that:

# E.g.: Create a S3 client
s3 = st.session_state['aws_session'].client('s3')

Caveats

enableXsrfProtection=false (config.toml)

Releases

No releases published

Packages

No packages published

Languages