mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-06 09:47:51 +02:00
uncomment chinook
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user