DeepVen commited on
Commit
eb89dbb
·
1 Parent(s): 4569f05

Update LLMInsights.py

Browse files
Files changed (1) hide show
  1. LLMInsights.py +2 -2
LLMInsights.py CHANGED
@@ -328,7 +328,7 @@ with tab1:
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=None, 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"])
@@ -404,7 +404,7 @@ with tab1:
404
  metadata_list = [doc.metadata for doc in response["source_documents"]]
405
  formatted_metadata_list = []
406
  for i, metadata in enumerate(metadata_list, start=1):
407
- formatted_metadata = f"<h2 style='color:#3366ff; font-size:16px;'>Metadata {i}:</h2><br>"
408
  source = metadata.get('source', '').replace('\n', '')
409
  title = metadata.get('title', '').replace('\n', '')
410
  description = metadata.get('description', '').replace('\n', '')
 
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"])
 
404
  metadata_list = [doc.metadata for doc in response["source_documents"]]
405
  formatted_metadata_list = []
406
  for i, metadata in enumerate(metadata_list, start=1):
407
+ formatted_metadata = f"<h2 style='color:#3366ff; font-weight:bold;'>Metadata {i}:</h2><br>"
408
  source = metadata.get('source', '').replace('\n', '')
409
  title = metadata.get('title', '').replace('\n', '')
410
  description = metadata.get('description', '').replace('\n', '')