Skip to content
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

Add a notebook test script. #187

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Standardise userdata cells
  • Loading branch information
MarkDaoust committed May 30, 2024
commit d6dd92da32f1333dd81056984ac66b7e982e07da
5 changes: 2 additions & 3 deletions examples/Anomaly_detection_with_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@
"import google.generativeai as genai\n",
"import google.ai.generativelanguage as glm\n",
"\n",
"# Used to securely store your API key\n",
"from google.colab import userdata\n",
"\n",
"from sklearn.datasets import fetch_20newsgroups\n",
"from sklearn.manifold import TSNE"
]
Expand All @@ -128,6 +125,8 @@
},
"outputs": [],
"source": [
"# Used to securely store your API key\n",
"from google.colab import userdata\n",
"API_KEY=userdata.get('GOOGLE_API_KEY')\n",
"genai.configure(api_key=API_KEY)"
]
Expand Down
4 changes: 2 additions & 2 deletions quickstarts/rest/Safety_REST.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
},
"outputs": [],
"source": [
"import os\n",
"from google.colab import userdata"
"import os"
]
},
{
Expand All @@ -110,6 +109,7 @@
},
"outputs": [],
"source": [
"from google.colab import userdata\n",
"os.environ['GOOGLE_API_KEY'] = userdata.get('GOOGLE_API_KEY')"
]
},
Expand Down