NCTCMumbai commited on
Commit
b908a63
1 Parent(s): 044757b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -76,11 +76,12 @@ def get_and_increment_value_count(db , collection_name, field_name):
76
 
77
  def update_count_html():
78
  usage_count = get_and_increment_value_count(db ,collection_name, field_name)
79
- count_html =gr.HTML(value= f"""
80
  <div style="display: flex; justify-content: flex-end;">
81
- <span style="font-weight: bold; color: maroon;">No of Usages:</span> {usage_count}
 
82
  </div>
83
- """)
84
  return count_html
85
 
86
  def add_text(history, text):
@@ -202,7 +203,7 @@ with gr.Blocks(theme='Insuz/SimpleIndigo') as demo:
202
  )
203
  txt_btn = gr.Button(value="Submit text", scale=1)
204
 
205
- cross_encoder = gr.Radio(choices=['MiniLM-L6v2','BGE reranker','ColBERT'], value='BGE reranker',label="Embeddings", info="Choose MiniLM for Speed, BGE reranker for accuracy,ColBERT for both (First query to Colbert may take litte time)")
206
 
207
  prompt_html = gr.HTML()
208
  # Turn off interactivity while generating if you click
 
76
 
77
  def update_count_html():
78
  usage_count = get_and_increment_value_count(db ,collection_name, field_name)
79
+ ccount_html = gr.HTML(value=f"""
80
  <div style="display: flex; justify-content: flex-end;">
81
+ <span style="font-weight: bold; color: maroon; font-size: 18px;">No of Usages:</span>
82
+ <span style="font-weight: bold; color: maroon; font-size: 18px;">{usage_count}</span>
83
  </div>
84
+ """)
85
  return count_html
86
 
87
  def add_text(history, text):
 
203
  )
204
  txt_btn = gr.Button(value="Submit text", scale=1)
205
 
206
+ cross_encoder = gr.Radio(choices=['MiniLM-L6v2','BGE reranker','ColBERT'], value='ColBERT',label="Embeddings", info="Choose MiniLM for Speed, BGE reranker for accuracy,ColBERT for both (First query to Colbert may take litte time)")
207
 
208
  prompt_html = gr.HTML()
209
  # Turn off interactivity while generating if you click