浏览代码

updated colab code

Yuce Dincer 2 周之前
父节点
当前提交
555bda1373
共有 1 个文件被更改,包括 14 次插入21 次删除
  1. 14 21
      3p-integrations/ibm/Get Started with watsonx.ai & Llama.ipynb

+ 14 - 21
3p-integrations/ibm/Get Started with watsonx.ai & Llama.ipynb

@@ -2,6 +2,14 @@
  "cells": [
   {
    "cell_type": "markdown",
+   "id": "efbe6b67",
+   "metadata": {},
+   "source": [
+    "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/meta-llama/llama-cookbook/blob/ibm-wxai/3p-integrations/ibm/Get%20Started%20with%20watsonx.ai%20%26%20Llama.ipynb)"
+   ]
+  },
+  {
+   "cell_type": "markdown",
    "id": "83a07847-b672-4a88-9a6d-fdae11bb1efa",
    "metadata": {},
    "source": [
@@ -137,17 +145,18 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 2,
+   "execution_count": null,
    "id": "75d0d514-bef9-4744-8fd4-5ceeda45901f",
    "metadata": {},
    "outputs": [],
    "source": [
     "# from google.colab import userdata\n",
     "\n",
-    "# # This must be done manually per session (or via an init cell)\n",
-    "# userdata.set_secret('IBM_CLOUD_API_KEY', 'your_api_key_here')\n",
-    "# userdata.set_secret('PROJECT_ID', 'your_project_id_here')\n",
-    "# userdata.set_secret('IBM_CLOUD_URL', 'https://us-south.ml.cloud.ibm.com')\n",
+    "# Set your env values in Secrets\n",
+    "\n",
+    "# IBM_CLOUD_API_KEY=\"\"\n",
+    "# PROJECT_ID=\"\"\n",
+    "# IBM_CLOUD_URL=\"\"\n",
     "\n",
     "# # Import necessary libraries\n",
     "# from google.colab import userdata\n",
@@ -705,22 +714,6 @@
     "* [Llama Model Documentation](https://www.llama.com/docs/overview/)\n",
     "* [Prompt Engineering Guide](https://www.promptingguide.ai/)"
    ]
-  },
-  {
-   "cell_type": "code",
-   "execution_count": null,
-   "id": "86b7c696-2873-4c0f-a4a6-115357003a94",
-   "metadata": {},
-   "outputs": [],
-   "source": []
-  },
-  {
-   "cell_type": "code",
-   "execution_count": null,
-   "id": "21ed78b9-d418-485e-8e8f-684c6a87e0d5",
-   "metadata": {},
-   "outputs": [],
-   "source": []
   }
  ],
  "metadata": {