rameshmoorthy commited on
Commit
92eeed5
β€’
1 Parent(s): 0673373

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -118,7 +118,7 @@ def bot(history, cross_encoder):
118
  if cross_encoder=='(HIGH ACCURATE) ColBERT':
119
  gr.Warning('Retrieving using ColBERT.. First time query will take a minute for model to load..pls wait')
120
  RAG= RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0")
121
- RAG_db=RAG.from_index('.ragatouille/colbert/indexes/mockingbird')
122
  documents_full=RAG_db.search(query,k=top_k_rank)
123
 
124
  documents=[item['content'] for item in documents_full]
@@ -190,7 +190,7 @@ with gr.Blocks(theme='Insuz/SimpleIndigo') as demo:
190
  </p>
191
  """, elem_id='Sub-heading')
192
  usage_count = get_and_increment_value_count(db,collection_name, field_name)
193
- gr.HTML(value=f"""<p style="font-family: Arial, sans-serif; font-size: 16px;">Developed by Ramesh M IRS (C& CE) (R-19187), Suggestions may be sent to <a href="mailto:mramesh.irs@gov.in" style="color: #00008B; font-style: italic;">mramesh.irs@gov.in</a>.</p>""", elem_id='Sub-heading1 ')
194
  count_html = gr.HTML(value=f"""
195
  <div style="display: flex; justify-content: flex-end;">
196
  <span style="font-weight: bold; color: maroon; font-size: 18px;">No of Usages:</span>
 
118
  if cross_encoder=='(HIGH ACCURATE) ColBERT':
119
  gr.Warning('Retrieving using ColBERT.. First time query will take a minute for model to load..pls wait')
120
  RAG= RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0")
121
+ RAG_db=RAG.from_index('.ragatouille/colbert/indexes/cbseclass10index')
122
  documents_full=RAG_db.search(query,k=top_k_rank)
123
 
124
  documents=[item['content'] for item in documents_full]
 
190
  </p>
191
  """, elem_id='Sub-heading')
192
  usage_count = get_and_increment_value_count(db,collection_name, field_name)
193
+ gr.HTML(value=f"""<p style="font-family: Arial, sans-serif; font-size: 16px;">Developed by K M Ramyasri , PGT . Suggestions may be sent to <a href="mailto:mramesh.irs@gov.in" style="color: #00008B; font-style: italic;">mramesh.irs@gov.in</a>.</p>""", elem_id='Sub-heading1 ')
194
  count_html = gr.HTML(value=f"""
195
  <div style="display: flex; justify-content: flex-end;">
196
  <span style="font-weight: bold; color: maroon; font-size: 18px;">No of Usages:</span>