|
62 | 62 | }, |
63 | 63 | "outputs": [], |
64 | 64 | "source": [ |
65 | | - "# !pip install SQLAlchemy==2.0.31" |
| 65 | + "!pip install SQLAlchemy==2.0.31 pymysql" |
66 | 66 | ] |
67 | 67 | }, |
68 | 68 | { |
|
74 | 74 | "Please set the following configuration - choose compute device: CPU or GPU, choose the language of the calls, and whether to skip the calls generation workflow and use pre-generated data." |
75 | 75 | ] |
76 | 76 | }, |
| 77 | + { |
| 78 | + "cell_type": "markdown", |
| 79 | + "id": "c1a3e034-151f-46d0-b6f7-38876c113a8b", |
| 80 | + "metadata": {}, |
| 81 | + "source": [ |
| 82 | + "#### Setup in Iguazio Cluster" |
| 83 | + ] |
| 84 | + }, |
77 | 85 | { |
78 | 86 | "cell_type": "markdown", |
79 | 87 | "id": "330ea34f-2d34-472c-995f-9f171afb03cf", |
|
85 | 93 | "- Please set `run_with_gpu = False`, `use_sqlite = False`, `engine = \"remote\"`" |
86 | 94 | ] |
87 | 95 | }, |
| 96 | + { |
| 97 | + "cell_type": "markdown", |
| 98 | + "id": "6c44bb2b-5ded-49d6-ae4d-7fa9ca67d1e4", |
| 99 | + "metadata": {}, |
| 100 | + "source": [ |
| 101 | + "#### Setup in Platform McK" |
| 102 | + ] |
| 103 | + }, |
| 104 | + { |
| 105 | + "cell_type": "markdown", |
| 106 | + "id": "05e3b4b8-d370-4fcf-944b-e8f3b478fa24", |
| 107 | + "metadata": {}, |
| 108 | + "source": [ |
| 109 | + "- GPU is not supported at the moment.\n", |
| 110 | + "- sqlite is supported.\n", |
| 111 | + "- Please set `run_with_gpu = False`, `use_sqlite = True`, `engine = \"remote\"`" |
| 112 | + ] |
| 113 | + }, |
88 | 114 | { |
89 | 115 | "cell_type": "code", |
90 | | - "execution_count": null, |
| 116 | + "execution_count": 37, |
91 | 117 | "id": "76f05c23312057a3", |
92 | 118 | "metadata": {}, |
93 | 119 | "outputs": [], |
|
96 | 122 | "run_with_gpu = False\n", |
97 | 123 | "language = \"en\" # The languages of the calls, es - Spanish, en - English\n", |
98 | 124 | "skip_calls_generation = False\n", |
99 | | - "use_sqlite = False" |
| 125 | + "use_sqlite = True" |
100 | 126 | ] |
101 | 127 | }, |
102 | 128 | { |
|
108 | 134 | "\n", |
109 | 135 | "> **⚠️ Important** Please fill the following variables in your `.env` file.\n", |
110 | 136 | "\n", |
111 | | - "Three tokens are required to run the demo end-to-end:\n", |
| 137 | + "Tokens are required to run the demo end-to-end:\n", |
112 | 138 | "* [OpenAI ChatGPT](https://chat.openai.com/) — To generate conversations, two tokens are required:\n", |
113 | 139 | " * `OPENAI_API_KEY`\n", |
114 | 140 | " * `OPENAI_API_BASE`\n", |
|
120 | 146 | "> If you wish to install mysql using helm chart you can use the command below - \n", |
121 | 147 | "> * `helm install -n <\"namesapce\"> myrelease bitnami/mysql --set auth.rootPassword=sql123 --set auth.database=mlrun_demos --set primary.service.ports.mysql=3111 --set primary.persistence.enabled=false`\n", |
122 | 148 | "> * Example for MYSQL_URL if you use the above command - `mysql+pymysql://root:sql123@myrelease-mysql.<\"namesapce\">.svc.cluster.local:3111/mlrun_demos`\n", |
123 | | - "\n" |
| 149 | + "\n", |
| 150 | + "For Platform Mck, a s3 bucket name needs to be in the `.env`\n", |
| 151 | + "* [S3 Bucket]() — \n", |
| 152 | + " * `S3_BUCKET_NAME`" |
124 | 153 | ] |
125 | 154 | }, |
126 | 155 | { |
127 | 156 | "cell_type": "code", |
128 | | - "execution_count": null, |
| 157 | + "execution_count": 38, |
129 | 158 | "id": "7e7503f4-8830-4972-a986-10f4c29624b9", |
130 | 159 | "metadata": { |
131 | 160 | "tags": [] |
132 | 161 | }, |
133 | | - "outputs": [], |
| 162 | + "outputs": [ |
| 163 | + { |
| 164 | + "data": { |
| 165 | + "text/plain": [ |
| 166 | + "True" |
| 167 | + ] |
| 168 | + }, |
| 169 | + "execution_count": 38, |
| 170 | + "metadata": {}, |
| 171 | + "output_type": "execute_result" |
| 172 | + } |
| 173 | + ], |
134 | 174 | "source": [ |
135 | 175 | "import dotenv\n", |
136 | 176 | "import os\n", |
|
145 | 185 | }, |
146 | 186 | { |
147 | 187 | "cell_type": "code", |
148 | | - "execution_count": null, |
| 188 | + "execution_count": 39, |
149 | 189 | "id": "d33fc614-2898-4b12-b34f-62181651a9b5", |
150 | 190 | "metadata": {}, |
151 | 191 | "outputs": [], |
152 | 192 | "source": [ |
153 | 193 | "assert not run_with_gpu\n", |
154 | | - "assert not use_sqlite\n", |
155 | | - "assert os.environ[\"MYSQL_URL\"]\n", |
156 | 194 | "assert os.environ[\"OPENAI_API_BASE\"]\n", |
157 | 195 | "assert os.environ[\"OPENAI_API_KEY\"]" |
158 | 196 | ] |
|
189 | 227 | }, |
190 | 228 | { |
191 | 229 | "cell_type": "code", |
192 | | - "execution_count": null, |
| 230 | + "execution_count": 40, |
193 | 231 | "id": "80b388f8-5aa3-4b6a-9b6d-b6dca242165e", |
194 | 232 | "metadata": { |
195 | | - "scrolled": true, |
196 | 233 | "tags": [] |
197 | 234 | }, |
198 | | - "outputs": [], |
| 235 | + "outputs": [ |
| 236 | + { |
| 237 | + "name": "stdout", |
| 238 | + "output_type": "stream", |
| 239 | + "text": [ |
| 240 | + "Project Source: git://github.com/xsqian/demo-call-center.git#main\n", |
| 241 | + "> 2025-08-02 02:13:41,912 [info] Project loaded successfully: {\"project_name\":\"call-center-demo-jovyan\"}\n" |
| 242 | + ] |
| 243 | + } |
| 244 | + ], |
199 | 245 | "source": [ |
200 | 246 | "project_name=\"call-center-demo\"\n", |
201 | 247 | "project = mlrun.get_or_create_project(\n", |
202 | 248 | " name=project_name,\n", |
203 | 249 | " user_project=True,\n", |
204 | 250 | " parameters={\n", |
205 | | - " \"build_image\": True,\n", |
| 251 | + " \"build_image\": False,\n", |
206 | 252 | " \"source\": \"git://github.com/xsqian/demo-call-center.git#main\",\n", |
207 | 253 | " \"gpus\": 1 if run_with_gpu else 0,\n", |
208 | 254 | " \"use_sqlite\": use_sqlite,\n", |
|
258 | 304 | }, |
259 | 305 | { |
260 | 306 | "cell_type": "code", |
261 | | - "execution_count": null, |
| 307 | + "execution_count": 41, |
262 | 308 | "id": "adc25213-d4d6-411d-a9b0-edf91007ba33", |
263 | 309 | "metadata": {}, |
264 | 310 | "outputs": [], |
|
305 | 351 | }, |
306 | 352 | { |
307 | 353 | "cell_type": "code", |
308 | | - "execution_count": null, |
| 354 | + "execution_count": 42, |
309 | 355 | "id": "8d3d7cca-ff52-4ffd-98df-7d70e8b083cf", |
310 | 356 | "metadata": {}, |
311 | | - "outputs": [], |
| 357 | + "outputs": [ |
| 358 | + { |
| 359 | + "data": { |
| 360 | + "text/plain": [ |
| 361 | + "<mlrun.projects.project.MlrunProject at 0x7fbc266674f0>" |
| 362 | + ] |
| 363 | + }, |
| 364 | + "execution_count": 42, |
| 365 | + "metadata": {}, |
| 366 | + "output_type": "execute_result" |
| 367 | + } |
| 368 | + ], |
312 | 369 | "source": [ |
313 | 370 | "project.spec.params['build_image']=False\n", |
314 | 371 | "project.save()" |
|
611 | 668 | ], |
612 | 669 | "metadata": { |
613 | 670 | "kernelspec": { |
614 | | - "display_name": "py311", |
| 671 | + "display_name": "Python 3 (ipykernel)", |
615 | 672 | "language": "python", |
616 | | - "name": "conda-env-.conda-py311-py" |
| 673 | + "name": "python3" |
617 | 674 | }, |
618 | 675 | "language_info": { |
619 | 676 | "codemirror_mode": { |
|
625 | 682 | "name": "python", |
626 | 683 | "nbconvert_exporter": "python", |
627 | 684 | "pygments_lexer": "ipython3", |
628 | | - "version": "3.11.13" |
| 685 | + "version": "3.9.13" |
629 | 686 | } |
630 | 687 | }, |
631 | 688 | "nbformat": 4, |
|
0 commit comments