Skip to content

Commit

Permalink
commenting out new additions
Browse files Browse the repository at this point in the history
  • Loading branch information
furniturewalatkNIH committed Dec 19, 2024
1 parent e2fd05b commit 269aa95
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions notebooks/GenAI/Gemini_Intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,43 +89,33 @@
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Checking parameters from ENV\n",
"None\n",
"None\n"
]
}
],
"outputs": [],
"source": [
"from google.cloud import aiplatform\n",
"import vertexai\n",
"from vertexai.generative_models import GenerativeModel, Image, GenerativeModel, ChatSession, Part, GenerationConfig\n",
"\n",
"import json\n",
"#import json\n",
"# Load env.json\n",
"try:\n",
" with open(\"env.json\") as f:\n",
" config = json.load(f)\n",
"except FileNotFoundError:\n",
" config = {}\n",
"#try:\n",
"# with open(\"env.json\") as f:\n",
"# config = json.load(f)\n",
"#except FileNotFoundError:\n",
"# config = {}\n",
"\n",
"\n",
"# Assign parameters from Env.\n",
"project_id = config.get(\"NOTEBOOK_GCP_PROJECT_ID\")\n",
"location = config.get(\"NOTEBOOK_GCP_LOCATION\")\n",
"#project_id = config.get(\"NOTEBOOK_GCP_PROJECT_ID\")\n",
"#location = config.get(\"NOTEBOOK_GCP_LOCATION\")\n",
"\n",
"\n",
"params = globals().get('parameters', {})\n",
"pid = params.get('NOTEBOOK_GCP_PROJECT_ID')\n",
"print(f\"My PID: {pid}\")\n",
"#params = globals().get('parameters', {})\n",
"#pid = params.get('NOTEBOOK_GCP_PROJECT_ID')\n",
"#print(f\"My PID: {pid}\")\n",
"\n",
"print(\"Checking parameters from ENV\")\n",
"print(project_id)\n",
"print(location)\n",
"#print(\"Checking parameters from ENV\")\n",
"#print(project_id)\n",
"#print(location)\n",
"\n",
"# TODO( FOR developer): If not defined in ENV earlier, uncomment and add it below\n",
"#project_id = \"<PROJECT_ID>\"\n",
Expand Down

0 comments on commit 269aa95

Please sign in to comment.