File size: 463 Bytes
c03605c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# src/study_chatbot/__init__.py
import os, sys, subprocess
from pathlib import Path


def main():
    # Resolve path to app.py inside the package
    entry = Path(__file__).parent / "app.py"
    subprocess.check_call(
        [
            sys.executable,
            "-m",
            "chainlit",
            "run",
            str(entry),
            "--host",
            "0.0.0.0",
            "--port",
            os.getenv("PORT", "8000"),
        ]
    )