Skip to content

Commit 0ae3916

Browse files
committed
Optimize RAG frontend display
1 parent 6d14382 commit 0ae3916

File tree

1 file changed

+4
-2
lines changed
  • cczoo/rag/frontend/chatbot-rag

1 file changed

+4
-2
lines changed

cczoo/rag/frontend/chatbot-rag/app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,14 @@ def resp_iter(r):
9292

9393
# Check the connection
9494
with st.spinner("⌛️    Chatbot-RAG demo is starting..."):
95+
status = get_ratls_output()
9596
if not haystack_is_ready(model_type):
9697
st.error("🚫    Connection Error. Is the chatbot-rag pipeline service running?")
97-
else:
98+
elif "grpc-ratls" in status:
9899
st.success("✅    Secure connection established with Intel\u00AE TDX technology")
100+
else:
101+
st.warning("⚠️    Connection established with an insecure channel")
99102

100-
status = get_ratls_output()
101103
if "grpc-ratls" in status:
102104
with st.expander('Connection Message:', expanded=True):
103105
st.text(status)

0 commit comments

Comments
 (0)