mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-08-29 19:10:19 +00:00
make error more explicit
This commit is contained in:
parent
a6113fcd33
commit
d4dba08922
@ -560,7 +560,7 @@
|
||||
" score = query_model(prompt)\n",
|
||||
" try:\n",
|
||||
" scores.append(int(score))\n",
|
||||
" except:\n",
|
||||
" except ValueError:\n",
|
||||
" continue\n",
|
||||
"\n",
|
||||
" return scores"
|
||||
@ -666,7 +666,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.4"
|
||||
"version": "3.10.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
@ -449,7 +449,7 @@
|
||||
" score = run_chatgpt(prompt, client)\n",
|
||||
" try:\n",
|
||||
" scores.append(int(score))\n",
|
||||
" except:\n",
|
||||
" except ValueError:\n",
|
||||
" continue\n",
|
||||
"\n",
|
||||
" return scores"
|
||||
@ -562,7 +562,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.4"
|
||||
"version": "3.10.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
Loading…
x
Reference in New Issue
Block a user