diff --git a/codetide/agents/tide/ui/__init__.py b/codetide/agents/tide/ui/__init__.py index 79d5c80..99851ab 100644 --- a/codetide/agents/tide/ui/__init__.py +++ b/codetide/agents/tide/ui/__init__.py @@ -1,5 +1,8 @@ -from .app import main +import os -__all__ = [ - "main" -] \ No newline at end of file +if os.getenv("SKIP_AUTH"): + from .app import main + + __all__ = [ + "main" + ] \ No newline at end of file diff --git a/examples/hf_demo_space/app.py b/examples/hf_demo_space/app.py index c587a6d..feb5259 100644 --- a/examples/hf_demo_space/app.py +++ b/examples/hf_demo_space/app.py @@ -4,14 +4,15 @@ import os os.environ.setdefault("CHAINLIT_APP_ROOT", str(Path(os.path.abspath(__file__)).parent)) +os.environ.setdefault("SKIP_AUTH", "1") from codetide.agents.tide.ui.defaults import AICORE_CONFIG_EXAMPLE, EXCEPTION_MESSAGE, MISSING_CONFIG_MESSAGE, STARTERS from codetide.agents.tide.ui.stream_processor import StreamProcessor, MarkerConfig from codetide.agents.tide.ui.utils import run_concurrent_tasks, send_reasoning_msg from codetide.agents.tide.ui.agent_tide_ui import AgentTideUi from codetide.core.defaults import DEFAULT_ENCODING -from codetide.core.logs import logger from codetide.agents.tide.models import Step +from codetide.core.logs import logger from aicore.const import STREAM_END_TOKEN, STREAM_START_TOKEN from aicore.models import AuthenticationError, ModelError