Skip to content

Commit 914f1b0

Browse files
authored
Merge pull request #30 from BrunoV21/typescrit-beta-2
Typescrit beta 2
2 parents 9073a87 + d255b18 commit 914f1b0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
from .app import main
1+
import os
22

3-
__all__ = [
4-
"main"
5-
]
3+
if os.getenv("SKIP_AUTH"):
4+
from .app import main
5+
6+
__all__ = [
7+
"main"
8+
]

examples/hf_demo_space/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
import os
55

66
os.environ.setdefault("CHAINLIT_APP_ROOT", str(Path(os.path.abspath(__file__)).parent))
7+
os.environ.setdefault("SKIP_AUTH", "1")
78

89
from codetide.agents.tide.ui.defaults import AICORE_CONFIG_EXAMPLE, EXCEPTION_MESSAGE, MISSING_CONFIG_MESSAGE, STARTERS
910
from codetide.agents.tide.ui.stream_processor import StreamProcessor, MarkerConfig
1011
from codetide.agents.tide.ui.utils import run_concurrent_tasks, send_reasoning_msg
1112
from codetide.agents.tide.ui.agent_tide_ui import AgentTideUi
1213
from codetide.core.defaults import DEFAULT_ENCODING
13-
from codetide.core.logs import logger
1414
from codetide.agents.tide.models import Step
15+
from codetide.core.logs import logger
1516

1617
from aicore.const import STREAM_END_TOKEN, STREAM_START_TOKEN
1718
from aicore.models import AuthenticationError, ModelError

0 commit comments

Comments
 (0)