"""introduction_to_streamlit_demo.py — minimal Streamlit starter page"""

import subprocess
import sys


def _running_under_streamlit() -> bool:
    try:
        from streamlit.runtime.scriptrunner import get_script_run_ctx
        return get_script_run_ctx() is not None
    except Exception:
        return False


if __name__ == "__main__" and not _running_under_streamlit():
    print("Starting Streamlit server — open http://localhost:8501 in your browser.")
    raise SystemExit(
        subprocess.call(
            [sys.executable, "-m", "streamlit", "run", __file__, *sys.argv[1:]],
        )
    )

import streamlit as st

st.set_page_config(page_title="HTML Questions")
st.title("HTML Questions")

st.chat_input("Type a question…")