Skip to content

Feature/ai-utilities#18

Open
sungchun12 wants to merge 2 commits into
mainfrom
feature/ai-utilities
Open

Feature/ai-utilities#18
sungchun12 wants to merge 2 commits into
mainfrom
feature/ai-utilities

Conversation

@sungchun12

Copy link
Copy Markdown
Owner

No description provided.

@sungchun12
sungchun12 marked this pull request as ready for review March 31, 2023 21:31
@sungchun12

Copy link
Copy Markdown
Owner Author

This code needs to work in marvin's init.py

from importlib.metadata import version as _get_version

# load nest_asyncio
import nest_asyncio as _nest_asyncio
import asyncio as _asyncio

import threading

import asyncio as _asyncio

import threading

if threading.current_thread() == threading.main_thread():
    _nest_asyncio.apply()
else:
    _asyncio.set_event_loop(_asyncio.new_event_loop())
    _nest_asyncio.apply()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant