Skip to content

Commit

Permalink
update get_model method details
Browse files Browse the repository at this point in the history
  • Loading branch information
karthidec committed May 5, 2024
1 parent 0528cda commit f5e2c9a
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions quickstarts/Models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,11 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {
"id": "49H9jQPO_TJ9"
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/kardev/Library/Python/3.8/lib/python/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020\n",
" warnings.warn(\n"
]
}
],
"outputs": [],
"source": [
"import google.generativeai as genai"
]
Expand All @@ -106,23 +97,11 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {
"id": "8PXsFZBQ_XA5"
},
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'google.colab'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[4], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mgoogle\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mcolab\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m userdata\n\u001b[1;32m 2\u001b[0m GOOGLE_API_KEY\u001b[38;5;241m=\u001b[39muserdata\u001b[38;5;241m.\u001b[39mget(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mGOOGLE_API_KEY\u001b[39m\u001b[38;5;124m'\u001b[39m)\n\u001b[1;32m 3\u001b[0m genai\u001b[38;5;241m.\u001b[39mconfigure(api_key\u001b[38;5;241m=\u001b[39mGOOGLE_API_KEY)\n",
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'google.colab'"
]
}
],
"outputs": [],
"source": [
"from google.colab import userdata\n",
"GOOGLE_API_KEY=userdata.get('GOOGLE_API_KEY')\n",
Expand Down

0 comments on commit f5e2c9a

Please sign in to comment.