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
)