NCTCMumbai commited on
Commit
f4d1676
·
verified ·
1 Parent(s): 5770af8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -169,7 +169,7 @@ with gr.Blocks(theme='Insuz/SimpleIndigo') as demo:
169
  <img src='logo.png' alt="Chatbot" width="50" height="50" />
170
  </div>""",elem_id='heading')
171
  gr.HTML(value="""<p style="font-family: sans-serif; font-size: 16px;">A free chat bot assistant for Expenditure Observers on Compendium on Election Expenditure Monitoring using Open source LLMs. <br> The bot can answer questions in natural language, taking relevant extracts from the ECI document which can be accessed <a href="https://www.eci.gov.in/eci-backend/public/api/download?url=LMAhAK6sOPBp%2FNFF0iRfXbEB1EVSLT41NNLRjYNJJP1KivrUxbfqkDatmHy12e%2Fzk1vx4ptJpQsKYHA87guoLjnPUWtHeZgKtEqs%2FyzfTTYIC0newOHHOjl1rl0u3mJBSIq%2Fi7zDsrcP74v%2FKr8UNw%3D%3D" style="color: #FF0000; text-decoration: none;"></a>.</p>""",elem_id='Sub-heading')
172
- usage_count = get_and_increment_value_count(collection_name, field_name)
173
  count_html =gr.HTML(value= f"""
174
  <div style="display: flex; justify-content: flex-end;">
175
  <span style="font-weight: bold; color: maroon;">No of Usages:</span> {usage_count}
 
169
  <img src='logo.png' alt="Chatbot" width="50" height="50" />
170
  </div>""",elem_id='heading')
171
  gr.HTML(value="""<p style="font-family: sans-serif; font-size: 16px;">A free chat bot assistant for Expenditure Observers on Compendium on Election Expenditure Monitoring using Open source LLMs. <br> The bot can answer questions in natural language, taking relevant extracts from the ECI document which can be accessed <a href="https://www.eci.gov.in/eci-backend/public/api/download?url=LMAhAK6sOPBp%2FNFF0iRfXbEB1EVSLT41NNLRjYNJJP1KivrUxbfqkDatmHy12e%2Fzk1vx4ptJpQsKYHA87guoLjnPUWtHeZgKtEqs%2FyzfTTYIC0newOHHOjl1rl0u3mJBSIq%2Fi7zDsrcP74v%2FKr8UNw%3D%3D" style="color: #FF0000; text-decoration: none;"></a>.</p>""",elem_id='Sub-heading')
172
+ usage_count = get_and_increment_value_count(db,collection_name, field_name)
173
  count_html =gr.HTML(value= f"""
174
  <div style="display: flex; justify-content: flex-end;">
175
  <span style="font-weight: bold; color: maroon;">No of Usages:</span> {usage_count}