RuntimeError: This event loop is already running #125
-
I'm trying to use locally hosted GPT4ALL-j model and locally hosted huggingfaceembeddings model to run the code. Everything works fine till the line to query from document, I got an error: RuntimeError: This event loop is already running Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
whitead
May 26, 2023
Replies: 1 comment
-
Are you in a jupyter notebook? If so, add this to the top of your notebook import nest_asyncio
nest_asyncio.apply() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
maykcaldas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you in a jupyter notebook? If so, add this to the top of your notebook