Skip to content

Commit

Permalink
fix streamlit issue for good?????
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecoconut committed Jan 18, 2024
1 parent 3efdca9 commit b7e62cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lambdaprompt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import nest_asyncio
import asyncio

from .gpt3 import AsyncGPT3Chat, AsyncGPT3Prompt, GPT3Chat, GPT3Prompt
from .prompt import (AsyncPrompt, Prompt, prompt, Completion, AsyncCompletion, Chat, AsyncChat, register_call_callback,
register_creation_callback)
from . import backends

nest_asyncio.apply()
try:
asyncio.get_running_loop()
nest_asyncio.apply()
except RuntimeError:
pass

__all__ = [
"AsyncGPT3Prompt",
Expand Down

0 comments on commit b7e62cf

Please sign in to comment.