Skip to content

Feature/ai-utilities #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Feature/ai-utilities #18

wants to merge 2 commits into from

Conversation

sungchun12
Copy link
Owner

No description provided.

@sungchun12 sungchun12 marked this pull request as ready for review March 31, 2023 21:31
@sungchun12
Copy link
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