ChenyuRabbitLove commited on
Commit
f564e37
·
verified ·
1 Parent(s): 1d7a041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -38,7 +38,7 @@ from google.oauth2.service_account import Credentials
38
  import vertexai
39
  from vertexai.generative_models import GenerativeModel, Part
40
 
41
- import boto3
42
 
43
  from chatbot import Chatbot
44
 
@@ -112,12 +112,12 @@ GBQ_CLIENT = bigquery.Client.from_service_account_info(json.loads(GBQ_KEY))
112
  GROQ_CLIENT = Groq(api_key=GROQ_API_KEY)
113
  GCS_SERVICE = GoogleCloudStorage(GCS_KEY)
114
  GCS_CLIENT = GCS_SERVICE.client
115
- BEDROCK_CLIENT = boto3.client(
116
- service_name="bedrock-runtime",
117
- aws_access_key_id=AWS_ACCESS_KEY,
118
- aws_secret_access_key=AWS_SECRET_KEY,
119
- region_name=AWS_REGION_NAME,
120
- )
121
 
122
  # check open ai access
123
  def check_open_ai_access(open_ai_api_key):
 
38
  import vertexai
39
  from vertexai.generative_models import GenerativeModel, Part
40
 
41
+ # import boto3
42
 
43
  from chatbot import Chatbot
44
 
 
112
  GROQ_CLIENT = Groq(api_key=GROQ_API_KEY)
113
  GCS_SERVICE = GoogleCloudStorage(GCS_KEY)
114
  GCS_CLIENT = GCS_SERVICE.client
115
+ # BEDROCK_CLIENT = boto3.client(
116
+ # service_name="bedrock-runtime",
117
+ # aws_access_key_id=AWS_ACCESS_KEY,
118
+ # aws_secret_access_key=AWS_SECRET_KEY,
119
+ # region_name=AWS_REGION_NAME,
120
+ # )
121
 
122
  # check open ai access
123
  def check_open_ai_access(open_ai_api_key):