Skip to content

Commit

Permalink
Fixing formatting and linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanMullins committed Jul 31, 2024
1 parent c0ac446 commit 8aeecd3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
{
"cell_type": "markdown",
"metadata": {
"id": "u71STQRgnQ3a"
"id": "52134f8eeb15"
},
"source": [
"# Evaluating content safety with ShieldGemma and Hugging Face Transformers"
"##### Copyright 2024 Google LLC"
]
},
{
Expand All @@ -18,7 +18,7 @@
},
"outputs": [],
"source": [
"# @title Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a copy of the License at\n",
"#\n",
Expand All @@ -31,6 +31,15 @@
"# limitations under the License."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "u71STQRgnQ3a"
},
"source": [
"# Evaluating content safety with ShieldGemma and Hugging Face Transformers"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -488,30 +497,12 @@
"collapsed_sections": [
"av03uUlhHeYq"
],
"gpuType": "T4",
"last_runtime": {
"build_target": "//learning/gemini/gemax/experimental/gemini2:notebook",
"kind": "private"
},
"machine_shape": "hm",
"private_outputs": true,
"provenance": [
{
"file_id": "1Ba41iEixQsSSuM-elS_ebhvm9aM_sSMi",
"timestamp": 1722279736259
},
{
"file_id": "1Vv9kJkLeMV3d0popbR7NDFlCVI8eDEbB",
"timestamp": 1722024165755
}
]
"name": "shieldgemma_on_huggingface.ipynb",
"toc_visible": true
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
Expand Down
37 changes: 14 additions & 23 deletions site/en/responsible/docs/safeguards/shieldgemma_on_keras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
{
"cell_type": "markdown",
"metadata": {
"id": "u71STQRgnQ3a"
"id": "52134f8eeb15"
},
"source": [
"# Evaluating content safety with ShieldGemma and Keras"
"##### Copyright 2024 Google LLC"
]
},
{
Expand All @@ -18,7 +18,7 @@
},
"outputs": [],
"source": [
"# @title Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
"# You may obtain a copy of the License at\n",
"#\n",
Expand All @@ -31,6 +31,15 @@
"# limitations under the License."
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "u71STQRgnQ3a"
},
"source": [
"# Evaluating content safety with ShieldGemma and Keras"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -526,30 +535,12 @@
"collapsed_sections": [
"68pV_ksZ_kbE"
],
"gpuType": "T4",
"last_runtime": {
"build_target": "//learning/gemini/gemax/experimental/gemini2:notebook",
"kind": "private"
},
"machine_shape": "hm",
"private_outputs": true,
"provenance": [
{
"file_id": "1SP7xuvAfNrh7OV5gX2Z5zAMRorQU_cWE",
"timestamp": 1722279793223
},
{
"file_id": "1Vv9kJkLeMV3d0popbR7NDFlCVI8eDEbB",
"timestamp": 1722267064028
}
]
"name": "shieldgemma_on_keras.ipynb",
"toc_visible": true
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 8aeecd3

Please sign in to comment.