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

Update LLMInsights.py

Browse files
Files changed (1) hide show
  1. LLMInsights.py +6 -5
LLMInsights.py CHANGED
@@ -397,15 +397,16 @@ 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.text_area(label="", value=score, height=30, format="%.2f", key='confidence_score', disabled=True, style={'font-size': '16px', 'color': '#009900', 'background-color': '#f0f0f0', 'border': 'none', 'resize': 'none'})
401
-
402
  # Hallucinated
403
  st.markdown('<h2 style="color:#100170;">Hallucinated?</h2>', unsafe_allow_html=True)
404
- st.text_area(label="", value=hallucination_score, height=30, format="%.2f", key='hallucination_score', disabled=True, style={'font-size': '16px', 'color': '#009900', 'background-color': '#f0f0f0', 'border': 'none', 'resize': 'none'})
405
-
406
  # Context
407
  st.markdown('<h2 style="color:#100170;">Context</h2>', unsafe_allow_html=True)
408
- st.text_area(label="", value=context, height=100, disabled=True, style={'font-size': '16px', 'color': '#009900', 'background-color': '#f0f0f0', 'border': 'none', 'resize': 'none'})
 
409
 
410
  metadata_list = [doc.metadata for doc in response["source_documents"]]
411
  formatted_metadata_list = []
 
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"]]
412
  formatted_metadata_list = []