aws bedrock streamlit
1.0.0
| ?大規模な工事中ですか?
streamlit run main.py
クエリ パラメータ「debug」を追加し、URL に「 true
」として割り当てます。例: http://localhost:8501/?debug=true。
streamlit run --server.runOnSave true main.py
クエリ パラメータ「profile」を追加し、URL 内のプロファイルの名前として割り当てます。例: http://localhost:8501/?profile=default
URL にクエリ パラメータ「debug」が設定されていることを確認します。
if st . query_params . get ( 'debug' ):
# Show debug information widget
AWS 認証情報はサイドバーに割り当てられ、Streamlit のセッション状態として保存され、 st.session_state['aws_session']
を呼び出して取得し、そこから低レベルのクライアントを作成します。
# E.g.: Create a S3 client
s3 = st . session_state [ 'aws_session' ]. client ( 's3' )
false
( config.toml
)