You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The number of workers are 1
objc[18920]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[18920]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Expected Behavior
This was giving an error when I was initializing a GPT 3 object.
Possible fix:
with multiprocessing.get_context("spawn").Pool() as pool:
pool.map(annotate,img_urls)
[Optional] Additional Context
Sample Code
@app.get("/")asyncdefh(requests):
engines=openai.Engine.list()
# print the first engine's idprint(engines.data[0].id)
# create a completioncompletion=openai.Completion.create(engine="ada", prompt="Hello world")
# print the completionprint(completion.choices[0].text)
openai.Completion.create(
engine="davinci",
prompt="Make a list of astronomical observatories:"
)
return"Hello, world!"
The text was updated successfully, but these errors were encountered:
Probably related to #140
Description
Expected Behavior
This was giving an error when I was initializing a GPT 3 object.
Possible fix:
[Optional] Additional Context
Sample Code
The text was updated successfully, but these errors were encountered: