Update LLMInsights.py
Browse files- LLMInsights.py +7 -7
LLMInsights.py
CHANGED
@@ -338,10 +338,10 @@ with tab1:
|
|
338 |
background-color: #100170;
|
339 |
color:#ffffff;
|
340 |
}
|
341 |
-
div.stButton > button:hover {
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
</style>""", unsafe_allow_html=True)
|
346 |
|
347 |
#st.markdown("----", unsafe_allow_html=True)
|
@@ -396,11 +396,11 @@ with tab1:
|
|
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 = []
|
|
|
338 |
background-color: #100170;
|
339 |
color:#ffffff;
|
340 |
}
|
341 |
+
# div.stButton > button:hover {
|
342 |
+
# background-color: #00ff00;
|
343 |
+
# color:#ff0000;
|
344 |
+
# }
|
345 |
</style>""", unsafe_allow_html=True)
|
346 |
|
347 |
#st.markdown("----", unsafe_allow_html=True)
|
|
|
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,disabled=True)
|
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,disabled=True)
|
402 |
st.markdown('<h1 style="color:#100170;font-size:24px;">Context</h1>', unsafe_allow_html=True)
|
403 |
+
st.text_area(label="", value=context,disabled=True)
|
404 |
|
405 |
metadata_list = [doc.metadata for doc in response["source_documents"]]
|
406 |
formatted_metadata_list = []
|