|
41 | 41 | }, |
42 | 42 | { |
43 | 43 | "cell_type": "code", |
44 | | - "execution_count": 1, |
| 44 | + "execution_count": 2, |
45 | 45 | "id": "28273bbd-c084-40ff-8f5a-263e16e64883", |
46 | 46 | "metadata": {}, |
47 | | - "outputs": [ |
48 | | - { |
49 | | - "name": "stdout", |
50 | | - "output_type": "stream", |
51 | | - "text": [ |
52 | | - "Enter you NVIDIA API Key: ········\n" |
53 | | - ] |
54 | | - }, |
55 | | - { |
56 | | - "name": "stdout", |
57 | | - "output_type": "stream", |
58 | | - "text": [ |
59 | | - "✓ NVIDIA API Key set successfully\n" |
60 | | - ] |
61 | | - } |
62 | | - ], |
| 47 | + "outputs": [], |
63 | 48 | "source": [ |
64 | 49 | "import os\n", |
65 | 50 | "import getpass\n", |
66 | 51 | "\n", |
67 | 52 | "if not os.environ.get(\"NVIDIA_API_KEY\", \"\").startswith(\"nvapi-\"):\n", |
68 | | - " nvidia_api_key = getpass.getpass(\"Enter you NVIDIA API Key: \")\n", |
| 53 | + " nvidia_api_key = getpass.getpass(\"Enter your NVIDIA API Key: \")\n", |
69 | 54 | " assert nvidia_api_key.startswith(\"nvapi-\"), \"Not a valid key\"\n", |
70 | 55 | " os.environ[\"NVIDIA_API_KEY\"] = nvidia_api_key\n", |
71 | 56 | " print(\"✓ NVIDIA API Key set successfully\")" |
72 | 57 | ] |
73 | 58 | }, |
74 | 59 | { |
75 | 60 | "cell_type": "code", |
76 | | - "execution_count": 2, |
| 61 | + "execution_count": 4, |
77 | 62 | "id": "3cf8644d-51f1-44f9-8684-4c2afca9f349", |
78 | 63 | "metadata": {}, |
79 | 64 | "outputs": [ |
80 | | - { |
81 | | - "name": "stdout", |
82 | | - "output_type": "stream", |
83 | | - "text": [ |
84 | | - "Enter you NIM API Key: ········\n" |
85 | | - ] |
86 | | - }, |
87 | 65 | { |
88 | 66 | "name": "stdout", |
89 | 67 | "output_type": "stream", |
|
97 | 75 | "import getpass\n", |
98 | 76 | "\n", |
99 | 77 | "if not os.environ.get(\"NIM_API_KEY\", \"\").startswith(\"nvapi-\"):\n", |
100 | | - " nim_api_key = getpass.getpass(\"Enter you NIM API Key: \")\n", |
101 | | - " assert nvidia_api_key.startswith(\"nvapi-\"), \"Not a valid key\"\n", |
| 78 | + " nim_api_key = getpass.getpass(\"Enter your NIM API Key: \")\n", |
| 79 | + " assert nim_api_key.startswith(\"nvapi-\"), \"Not a valid key\"\n", |
102 | 80 | " os.environ[\"NIM_API_KEY\"] = nim_api_key\n", |
103 | 81 | " print(\"✓ NIM API Key set successfully\")" |
104 | 82 | ] |
|
877 | 855 | ], |
878 | 856 | "metadata": { |
879 | 857 | "kernelspec": { |
880 | | - "display_name": "Python (NeMo Auditor)", |
| 858 | + "display_name": "Python 3 (ipykernel)", |
881 | 859 | "language": "python", |
882 | | - "name": "nemoauditor_env" |
| 860 | + "name": "python3" |
883 | 861 | }, |
884 | 862 | "language_info": { |
885 | 863 | "codemirror_mode": { |
|
891 | 869 | "name": "python", |
892 | 870 | "nbconvert_exporter": "python", |
893 | 871 | "pygments_lexer": "ipython3", |
894 | | - "version": "3.12.3" |
| 872 | + "version": "3.10.2" |
895 | 873 | } |
896 | 874 | }, |
897 | 875 | "nbformat": 4, |
|
0 commit comments