From e21a0d69fb399129836d778573ec8ddc2cca2587 Mon Sep 17 00:00:00 2001 From: Ankush Gola Date: Wed, 12 Jun 2024 13:26:18 -0700 Subject: [PATCH] uncomment chinook --- examples/tutorials/sql-agent.ipynb | 44 ++++++++++++++++++------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/examples/tutorials/sql-agent.ipynb b/examples/tutorials/sql-agent.ipynb index 1415a94ea..f3603e870 100644 --- a/examples/tutorials/sql-agent.ipynb +++ b/examples/tutorials/sql-agent.ipynb @@ -73,29 +73,37 @@ }, { "cell_type": "code", - "execution_count": 3, - "outputs": [], + "execution_count": 19, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "File downloaded and saved as Chinook.db\n" + ] + } + ], "source": [ - "# import requests\n", - "# \n", - "# url = \"https://storage.googleapis.com/benchmarks-artifacts/chinook/Chinook.db\"\n", - "# \n", - "# response = requests.get(url)\n", - "# \n", - "# if response.status_code == 200:\n", - "# # Open a local file in binary write mode\n", - "# with open(\"Chinook.db\", \"wb\") as file:\n", - "# # Write the content of the response (the file) to the local file\n", - "# file.write(response.content)\n", - "# print(\"File downloaded and saved as Chinook.db\")\n", - "# else:\n", - "# print(f\"Failed to download the file. Status code: {response.status_code}\")" + "import requests\n", + "\n", + "url = \"https://storage.googleapis.com/benchmarks-artifacts/chinook/Chinook.db\"\n", + "\n", + "response = requests.get(url)\n", + "\n", + "if response.status_code == 200:\n", + " # Open a local file in binary write mode\n", + " with open(\"Chinook.db\", \"wb\") as file:\n", + " # Write the content of the response (the file) to the local file\n", + " file.write(response.content)\n", + " print(\"File downloaded and saved as Chinook.db\")\n", + "else:\n", + " print(f\"Failed to download the file. Status code: {response.status_code}\")" ], "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2024-06-12T20:18:10.130822Z", - "start_time": "2024-06-12T20:18:10.123796Z" + "end_time": "2024-06-12T20:26:06.460618Z", + "start_time": "2024-06-12T20:26:06.025590Z" } }, "id": "64b0bf1b14c2e902"