kleine Änderungen
This commit is contained in:
parent
2acaf3c060
commit
9bb6566419
|
|
@ -124,8 +124,10 @@ def render_chat_interface(top_k, explain):
|
||||||
# Intent Badge
|
# Intent Badge
|
||||||
if "intent" in msg:
|
if "intent" in msg:
|
||||||
icon = {"EMPATHY": "❤️", "DECISION": "⚖️", "CODING": "💻", "FACT": "📚"}.get(msg["intent"], "🧠")
|
icon = {"EMPATHY": "❤️", "DECISION": "⚖️", "CODING": "💻", "FACT": "📚"}.get(msg["intent"], "🧠")
|
||||||
st.markdown(f'<div class="intent-badge">{icon} Intent: {msg["intent"]}</div>', unsafe_allow_html=True)
|
# st.markdown(f'<div class="intent-badge">{icon} Intent: {msg["intent"]}</div>', unsafe_allow_html=True)
|
||||||
|
# NEU (mit Source):
|
||||||
|
source_info = msg.get("intent_source", "Unknown")
|
||||||
|
st.markdown(f'<div class="intent-badge">{icon} Intent: {msg["intent"]} <span style="opacity:0.6; font-size: 0.9em; margin-left:5px;">via {source_info}</span></div>', unsafe_allow_html=True)
|
||||||
st.markdown(msg["content"])
|
st.markdown(msg["content"])
|
||||||
|
|
||||||
# Sources
|
# Sources
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user