DeepVen commited on
Commit
fe3f2b5
·
1 Parent(s): bb783f2

Update LLMInsights.py

Browse files
Files changed (1) hide show
  1. LLMInsights.py +4 -6
LLMInsights.py CHANGED
@@ -327,10 +327,8 @@ with tab1:
327
  options = ["true", "false"]
328
 
329
  st.markdown('<h1 style="color:#100170;font-size:24px;">User Query</h1>', unsafe_allow_html=True)
330
-
331
- question = st.text_input(label="", value="", placeholder="Type in question",label_visibility="visible", disabled=False)
332
- #st.markdown('<h2 style="color:#3a0aa6;font-size:24px;">Evaluation</h2>', unsafe_allow_html=True)
333
- st.markdown("<h1 style='color:#100170;font-size:24px;'>Perform Evaluation</h1>", unsafe_allow_html=True)
334
  evaluate = st.radio("", ["True", "False"])
335
  m = st.markdown("""
336
  <style>
@@ -396,9 +394,9 @@ 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,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
 
 
327
  options = ["true", "false"]
328
 
329
  st.markdown('<h1 style="color:#100170;font-size:24px;">User Query</h1>', unsafe_allow_html=True)
330
+ question = st.text_input(label="", value="", placeholder="Type in question", label_visibility="visible", disabled=False)
331
+ st.markdown("<h1 style='color:#100170;font-size:24px;margin-bottom:0;'>Perform Evaluation</h1>", unsafe_allow_html=True)
 
 
332
  evaluate = st.radio("", ["True", "False"])
333
  m = st.markdown("""
334
  <style>
 
394
  else:
395
  score = "Evaluation is Turned OFF"
396
  st.markdown('<h1 style="color:#100170;font-size:24px;">Confidence Score</h1>', unsafe_allow_html=True)
397
+ st.text_area(label="", value=score, height=30,disabled=True)
398
  st.markdown('<h1 style="color:#100170;font-size:24px;">Hallucinated?</h1>', unsafe_allow_html=True)
399
+ st.text_area(label="", value=hallucination_score, height=30,disabled=True)
400
  st.markdown('<h1 style="color:#100170;font-size:24px;">Context</h1>', unsafe_allow_html=True)
401
  st.text_area(label="", value=context,disabled=True)
402