mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Fix timeout issue related to spam data backup url (#544)
* Add backup url for Spam Dataset * import urllib * fix url * fix timeout issue
This commit is contained in:
committed by
GitHub
parent
c39aa32ef5
commit
d1e99f6092
@@ -207,9 +207,8 @@
|
||||
"\n",
|
||||
"try:\n",
|
||||
" download_and_unzip_spam_data(url, zip_path, extracted_path, data_file_path)\n",
|
||||
"except urllib.error.HTTPError:\n",
|
||||
" print(\"UCI Machine Learning Repository (https://archive.ics.uci.edu)\"\n",
|
||||
" \" temporary unavailable. Using backup URL.\")\n",
|
||||
"except (urllib.error.HTTPError, urllib.error.URLError, TimeoutError) as e:\n",
|
||||
" print(f\"Primary URL failed: {e}. Trying backup URL...\")\n",
|
||||
" url = \"https://f001.backblazeb2.com/file/LLMs-from-scratch/sms%2Bspam%2Bcollection.zip\"\n",
|
||||
" download_and_unzip_spam_data(url, zip_path, extracted_path, data_file_path)\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user