Spaces:
Runtime error
Runtime error
NCTCMumbai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -170,13 +170,14 @@ with gr.Blocks(theme='Insuz/SimpleIndigo') as demo:
|
|
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>CLICK HERE ! </p>""",elem_id='Sub-heading')
|
172 |
usage_count = get_and_increment_value_count(db,collection_name, field_name)
|
173 |
-
|
|
|
174 |
<div style="display: flex; justify-content: flex-end;">
|
175 |
-
|
|
|
176 |
</div>
|
177 |
-
|
178 |
-
|
179 |
-
""", elem_id='Sub-heading1 ')
|
180 |
chatbot = gr.Chatbot(
|
181 |
[],
|
182 |
elem_id="chatbot",
|
|
|
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>CLICK HERE ! </p>""",elem_id='Sub-heading')
|
172 |
usage_count = get_and_increment_value_count(db,collection_name, field_name)
|
173 |
+
gr.HTML(value=f"""<p style="font-family: Arial, sans-serif; font-size: 16px;">Developed by Ramesh M IRS (C& CE), Suggestions may be sent to <a href="mailto:[email protected]" style="color: #00008B; font-style: italic;">[email protected]</a>.</p>""", elem_id='Sub-heading1 ')
|
174 |
+
count_html = gr.HTML(value=f"""
|
175 |
<div style="display: flex; justify-content: flex-end;">
|
176 |
+
<span style="font-weight: bold; color: maroon; font-size: 18px;">No of Usages:</span>
|
177 |
+
<span style="font-weight: bold; color: maroon; font-size: 18px;">{usage_count}</span>
|
178 |
</div>
|
179 |
+
""")
|
180 |
+
|
|
|
181 |
chatbot = gr.Chatbot(
|
182 |
[],
|
183 |
elem_id="chatbot",
|