DeepVen commited on
Commit
211523e
·
1 Parent(s): 0f86488

Update LLMInsights.py

Browse files
Files changed (1) hide show
  1. LLMInsights.py +2 -2
LLMInsights.py CHANGED
@@ -174,7 +174,7 @@ def rag_response(response):
174
  #st.markdown(".stTextInput > label {font-size:105%; font-weight:bold; color:blue;} ",unsafe_allow_html=True) #for all text-input label sections
175
 
176
 
177
- st.markdown('<h1 style="color:#100170;font-size:32px;text-align:center;">RAG Response</h1>', unsafe_allow_html=True)
178
 
179
  question_title = '<h2 style="color:#100170;font-size:24px;">Question</h2>'
180
  question = f"<div style='background-color:#f0f0f0; padding:10px; border-radius:10px;'>{response['query']}</div>"
@@ -416,7 +416,7 @@ with tab1:
416
  metadata_list = [doc.metadata for doc in response["source_documents"]]
417
  formatted_metadata_list = []
418
  for i, metadata in enumerate(metadata_list, start=1):
419
- formatted_metadata = f"<h2 style='color:#3366ff; font-size:16px;'>Metadata {i}:</h2><br>"
420
  source = metadata.get('source', '').replace('\n', '')
421
  title = metadata.get('title', '').replace('\n', '')
422
  description = metadata.get('description', '').replace('\n', '')
 
174
  #st.markdown(".stTextInput > label {font-size:105%; font-weight:bold; color:blue;} ",unsafe_allow_html=True) #for all text-input label sections
175
 
176
 
177
+ st.markdown('<h1 style="color:#100170;font-size:32px;text-align:center;padding:0;">RAG Response</h1>', unsafe_allow_html=True)
178
 
179
  question_title = '<h2 style="color:#100170;font-size:24px;">Question</h2>'
180
  question = f"<div style='background-color:#f0f0f0; padding:10px; border-radius:10px;'>{response['query']}</div>"
 
416
  metadata_list = [doc.metadata for doc in response["source_documents"]]
417
  formatted_metadata_list = []
418
  for i, metadata in enumerate(metadata_list, start=1):
419
+ formatted_metadata = f"<h2 style='color:#3366ff; font-size:16px;padding:0;'>Metadata {i}:</h2><br>"
420
  source = metadata.get('source', '').replace('\n', '')
421
  title = metadata.get('title', '').replace('\n', '')
422
  description = metadata.get('description', '').replace('\n', '')