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
)