ablamahfadi commited on
Commit
f09ac4a
1 Parent(s): 61cc56f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def deploy_and_get_interface(hf_model_url):
24
  role = sagemaker.get_execution_role()
25
  except ValueError:
26
  iam = boto3.client('iam')
27
- role = iam.get_role(RoleName='Moh-work')['Role']['Arn']
28
 
29
  hf_model_id = hf_model_url.split('/')[-2]
30
 
 
24
  role = sagemaker.get_execution_role()
25
  except ValueError:
26
  iam = boto3.client('iam')
27
+ role = iam.get_role(RoleName='AmazonSageMaker-ExecutionRole-20231003T151671')['Role']['Arn']
28
 
29
  hf_model_id = hf_model_url.split('/')[-2]
30