
    g                    L    d dl mZ d dlmZmZmZ d dlmZmZ ddZ	d	dZ
g dZy)
    )annotations)RuntimeRuntimeConfigRuntimeState)SessionClientSessionClientDisconnectedErrorc                 *    t        j                         S )zfReturn the singleton Runtime instance. Raise an Error if the
    Runtime hasn't been created yet.
    )r   instance     O/var/www/openai/venv/lib/python3.12/site-packages/streamlit/runtime/__init__.pyget_instancer      s     r   c                 *    t        j                         S )a  True if the singleton Runtime instance has been created.

    When a Streamlit app is running in "raw mode" - that is, when the
    app is run via `python app.py` instead of `streamlit run app.py` -
    the Runtime will not exist, and various Streamlit functions need
    to adapt.
    )r   existsr   r   r   r   r      s     >>r   )r   r   r   r   r   r   r   N)returnr   )r   bool)
__future__r   streamlit.runtime.runtimer   r   r   !streamlit.runtime.session_managerr   r   r   r   __all__r   r   r   <module>r      s&    # J Jr   