File size: 600 Bytes
297e6c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d77e99f
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""UI module for stroke-deepisles-demo.

Exports:
    create_app: Create the Gradio application
    get_demo: Get the global demo instance (lazy initialization)
"""

from typing import Any


def __getattr__(name: str) -> Any:
    """Lazy import to avoid circular import when running as `python -m`."""
    if name in ("create_app", "get_demo"):
        from stroke_deepisles_demo.ui.app import create_app, get_demo

        return {"create_app": create_app, "get_demo": get_demo}[name]
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


__all__ = ["create_app", "get_demo"]