diff --git a/cczoo/rag/frontend/chatbot-rag/app.py b/cczoo/rag/frontend/chatbot-rag/app.py index b9a17e72..d5f4f443 100644 --- a/cczoo/rag/frontend/chatbot-rag/app.py +++ b/cczoo/rag/frontend/chatbot-rag/app.py @@ -92,12 +92,14 @@ def resp_iter(r): # Check the connection with st.spinner("⌛️    Chatbot-RAG demo is starting..."): + status = get_ratls_output() if not haystack_is_ready(model_type): st.error("🚫    Connection Error. Is the chatbot-rag pipeline service running?") - else: + elif "grpc-ratls" in status: st.success("✅    Secure connection established with Intel\u00AE TDX technology") + else: + st.warning("⚠️    Connection established with an insecure channel") - status = get_ratls_output() if "grpc-ratls" in status: with st.expander('Connection Message:', expanded=True): st.text(status)