Skip to content

Commit

Permalink
Optimize RAG frontend display
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsy-Intel committed Dec 11, 2024
1 parent 6d14382 commit 0ae3916
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cczoo/rag/frontend/chatbot-rag/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ae3916

Please sign in to comment.