Update LLMInsights.py
Browse files- LLMInsights.py +6 -11
LLMInsights.py
CHANGED
@@ -395,17 +395,12 @@ with tab1:
|
|
395 |
)
|
396 |
else:
|
397 |
score = "Evaluation is Turned OFF"
|
398 |
-
|
399 |
-
st.
|
400 |
-
st.markdown(
|
401 |
-
|
402 |
-
|
403 |
-
st.
|
404 |
-
st.markdown(f'<p style="font-size:16px; color:#009900; background-color:#f0f0f0; padding:10px;">{hallucination_score}</p>', unsafe_allow_html=True)
|
405 |
-
|
406 |
-
# Context
|
407 |
-
st.markdown('<h2 style="color:#100170;">Context</h2>', unsafe_allow_html=True)
|
408 |
-
st.markdown(f'<p style="font-size:16px; color:#009900; background-color:#f0f0f0; padding:10px;">{context}</p>', unsafe_allow_html=True)
|
409 |
|
410 |
metadata_list = [doc.metadata for doc in response["source_documents"]]
|
411 |
formatted_metadata_list = []
|
|
|
395 |
)
|
396 |
else:
|
397 |
score = "Evaluation is Turned OFF"
|
398 |
+
st.markdown('<h1 style="color:#100170;font-size:24px;">Confidence Score</h1>', unsafe_allow_html=True)
|
399 |
+
st.text_area(label=" ", value=score, height=30)
|
400 |
+
st.markdown('<h1 style="color:#100170;font-size:24px;">Hallucinated?</h1>', unsafe_allow_html=True)
|
401 |
+
st.text_area(label=" ", value=hallucination_score, height=30)
|
402 |
+
st.markdown('<h1 style="color:#100170;font-size:24px;">Context</h1>', unsafe_allow_html=True)
|
403 |
+
st.text_area(label="", value=context)
|
|
|
|
|
|
|
|
|
|
|
404 |
|
405 |
metadata_list = [doc.metadata for doc in response["source_documents"]]
|
406 |
formatted_metadata_list = []
|