Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Osmond committed Apr 16, 2024
1 parent 5e98349 commit cbd37d0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions hackathon/streamlit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
import plotly.graph_objects as go
import streamlit as st
from folium.plugins import StripePattern
from langchain.embeddings.sentence_transformer import (
SentenceTransformerEmbeddings,
)
from langchain.embeddings.sentence_transformer import SentenceTransformerEmbeddings
from streamlit.runtime import get_instance
from streamlit.runtime.scriptrunner import get_script_run_ctx
from streamlit_folium import folium_static
Expand All @@ -37,7 +35,7 @@
)

# from hackathon.llm.chain_config import (

# # Empty for now
# )
from hackathon.llm.llm import LLama2, SagemakerHostedLLM
from hackathon.llm.llm_handler import LLMRunner
Expand Down Expand Up @@ -77,14 +75,10 @@ def get_password():

# Create a Secrets Manager client
session = boto3.session.Session()
client = session.client(
service_name="secretsmanager", region_name=AWS_REGION
)
client = session.client(service_name="secretsmanager", region_name=AWS_REGION)

try:
get_secret_value_response = client.get_secret_value(
SecretId=secret_name
)
get_secret_value_response = client.get_secret_value(SecretId=secret_name)
except Exception as e:
# For a list of exceptions thrown, see
# https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
Expand Down

0 comments on commit cbd37d0

Please sign in to comment.