Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ model.renderer.set_chunk_size(131072)
|
|
39 |
model.to(device)
|
40 |
|
41 |
rembg_session = rembg.new_session()
|
42 |
-
|
43 |
-
|
44 |
bedrock = boto3.client(service_name='bedrock', aws_access_key_id = ACCESS, aws_secret_access_key = SECRET, region_name='us-east-1')
|
45 |
bedrock_runtime = boto3.client(service_name='bedrock-runtime', aws_access_key_id = ACCESS, aws_secret_access_key = SECRET, region_name='us-east-1')
|
46 |
# def generate_image_from_text(pos_prompt):
|
|
|
39 |
model.to(device)
|
40 |
|
41 |
rembg_session = rembg.new_session()
|
42 |
+
ACCESS = os.getenv("ACCESS")
|
43 |
+
SECRET = os.getenv("SECRET")
|
44 |
bedrock = boto3.client(service_name='bedrock', aws_access_key_id = ACCESS, aws_secret_access_key = SECRET, region_name='us-east-1')
|
45 |
bedrock_runtime = boto3.client(service_name='bedrock-runtime', aws_access_key_id = ACCESS, aws_secret_access_key = SECRET, region_name='us-east-1')
|
46 |
# def generate_image_from_text(pos_prompt):
|