DeepVen commited on
Commit
857e323
·
1 Parent(s): 4456d00

Update LLMInsights.py

Browse files
Files changed (1) hide show
  1. LLMInsights.py +3 -3
LLMInsights.py CHANGED
@@ -397,15 +397,15 @@ with tab1:
397
  score = "Evaluation is Turned OFF"
398
  # Confidence Score
399
  st.markdown('<h2 style="color:#100170;">Confidence Score</h2>', unsafe_allow_html=True)
400
- st.markdown(f'<p style="font-size:16px; color:#009900; background-color:#f0f0f0; padding:10px;">{score:.2f}</p>', unsafe_allow_html=True)
401
 
402
  # Hallucinated
403
  st.markdown('<h2 style="color:#100170;">Hallucinated?</h2>', unsafe_allow_html=True)
404
- st.markdown(f'<p style="font-size:16px; color:#009900; background-color:#f0f0f0; padding:10px;">{hallucination_score:.2f}</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
 
411
  metadata_list = [doc.metadata for doc in response["source_documents"]]
 
397
  score = "Evaluation is Turned OFF"
398
  # Confidence Score
399
  st.markdown('<h2 style="color:#100170;">Confidence Score</h2>', unsafe_allow_html=True)
400
+ st.markdown('<p style="font-size:16px; color:#009900; background-color:#f0f0f0; padding:10px;">{score}</p>', unsafe_allow_html=True)
401
 
402
  # Hallucinated
403
  st.markdown('<h2 style="color:#100170;">Hallucinated?</h2>', unsafe_allow_html=True)
404
+ st.markdown('<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('<p style="font-size:16px; color:#009900; background-color:#f0f0f0; padding:10px;">{context}</p>', unsafe_allow_html=True)
409
 
410
 
411
  metadata_list = [doc.metadata for doc in response["source_documents"]]