-
Notifications
You must be signed in to change notification settings - Fork 61
Updated notebooks to be more descriptive and include non-pipelined examples. #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
"guardrail_name = \"ExampleMedicalGuardrail\"\n", | ||
"try:\n", | ||
" # Try to get the guardrail\n", | ||
" response = guardrail_client.list_guardrails()\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to handle if list is empty, otherwise guardrail_id
won't be defined and will throw an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in a try block, and the response.get call defaults to an empty list. If guardrail_id is empty it will create the guardrail in the exception, provided the error message is ResourceNotFoundException
workshops/fine-tuning-with-sagemakerai-and-bedrock/task_05_fmops/05.00_fmops_examples.ipynb
Outdated
Show resolved
Hide resolved
...hops/fine-tuning-with-sagemakerai-and-bedrock/task_05_fmops/05.01_fine-tuning-pipeline.ipynb
Show resolved
Hide resolved
|
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.