Connect with us

Tech

How To Build an AI Health Care Agent on Amazon Bedrock

Published

on

[ad_1]

import json

import boto3

import streamlit as st

from dotenv import load_dotenv

import os

 

# Load environment variables from .env

load_dotenv()

aws_access_key_id = os.getenv(“AWS_ACCESS_KEY_ID”)

aws_secret_access_key = os.getenv(“AWS_SECRET_ACCESS_KEY”)

region_name = os.getenv(“AWS_REGION”, “us-east-1”)

FLOW_ID = os.getenv(“FLOW_ID”)

FLOW_ALIAS_ID = os.getenv(“FLOW_ALIAS_ID”)

 

# Initialize Streamlit app

st.title(“Amazon Bedrock Flow integration”)

 

# Initialize session state

if ‘execution_id’ not in st.session_state:

   st.session_state.execution_id = None

if

[ad_2]

Source link

Continue Reading
Click to comment

You must be logged in to post a comment Login

Leave a Reply