DeepVen commited on
Commit
598a3dc
·
1 Parent(s): 857e323

Update LLMInsights.py

Browse files
Files changed (1) hide show
  1. LLMInsights.py +4 -5
LLMInsights.py CHANGED
@@ -395,18 +395,17 @@ with tab1:
395
  )
396
  else:
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"]]
412
  formatted_metadata_list = []
 
395
  )
396
  else:
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}</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}</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 = []