Skip to content

Commit

Permalink
openai_fine_tuning fix for asyncio (#12667)
Browse files Browse the repository at this point in the history
* Add files via upload

Adding nest_asyncio.apply() to resolve RuntimeError: asyncio.run() cannot be called from a running event loop

* Delete experimental/openai_fine_tuning/openai_fine_tuning-2.ipynb

* Update openai_fine_tuning.ipynb with asyncio to fix runtime error
  • Loading branch information
EleniVerteouri authored Apr 9, 2024
1 parent 029f743 commit ca0d87a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions experimental/openai_fine_tuning/openai_fine_tuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import nest_asyncio\n",
"\n",
"nest_asyncio.apply()"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit ca0d87a

Please sign in to comment.