"""Doctor dashboard and demo console (Streamlit). Talks to the backend only via the API.""" import os import httpx import streamlit as st API = os.environ.get("API_BASE_URL", "http://localhost:8000") st.set_page_config(page_title="PTSRaiAgent — кабинет врача", page_icon="🩺", layout="wide") st.title("Кабинет врача") st.caption("Прототип на синтетических данных") try: status = httpx.get(f"{API}/health", timeout=2).json().get("status") except httpx.HTTPError: status = "недоступен" st.write(f"API: **{status}**")