rameshmoorthy commited on
Commit
2e1aa6d
1 Parent(s): 8ab5caf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -43,8 +43,8 @@ template_html = env.get_template('template_html.j2')
43
  # collection_name = 'Nirvachana' # Replace with your collection name
44
  # field_name = 'message_count' # Replace with your field name for count
45
  # Examples
46
- examples = ['when i have to report to constituency?','what is social media and what are rules related to it for expenditure monitoring ',
47
- 'how many reports to be submitted by Expenditure observer with annexure names ?','what is expenditure limits for parlimentary constituency and assembly constituency'
48
  ]
49
 
50
 
@@ -180,14 +180,15 @@ def bot(history, cross_encoder):
180
  #store_message(db,history[-1][0],history[-1][1],cross_encoder)
181
 
182
 
183
- with gr.Blocks(theme='Insuz/SimpleIndigo') as demo:
184
- gr.HTML(value="""<div styleCHEERFULL CBSE- <span style="color: #008000">AI Assisted Fun Learning</span></h1>
 
 
185
  <img src='logo.png' alt="Chatbot" width="50" height="50" />
186
- </div>""",elem_id='heading')
187
  gr.HTML(value=f"""
188
  <p style="font-family: sans-serif; font-size: 16px;">
189
- A free chat bot assistant for Expenditure Observers on Compendium on Election Expenditure Monitoring using Open source LLMs. <br>
190
- 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: #00008B; text-decoration: none;">CLICK HERE !</a>.
191
  </p>
192
  """, elem_id='Sub-heading')
193
  #usage_count = get_and_increment_value_count(db,collection_name, field_name)
 
43
  # collection_name = 'Nirvachana' # Replace with your collection name
44
  # field_name = 'message_count' # Replace with your field name for count
45
  # Examples
46
+ examples = ['Tabulate the difference between veins and arteries','What are defects in Human eye?',
47
+ 'Frame 5 short questions and 5 MCQ on Chapter 2 ','Suggest creative and engaging ideas to teach students on Chapter on Metals and Non Metals '
48
  ]
49
 
50
 
 
180
  #store_message(db,history[-1][0],history[-1][1],cross_encoder)
181
 
182
 
183
+ #with gr.Blocks(theme='Insuz/SimpleIndigo') as demo:
184
+ with gr.Blocks(theme='dawood/dracula_test') as demo:
185
+
186
+ gr.HTML(value="""<div style="color: #FF4500;">CHEERFULL CBSE- <h1><span style="color: #008000">AI Assisted Fun Learning</span></h1>
187
  <img src='logo.png' alt="Chatbot" width="50" height="50" />
188
+ </div>""", elem_id='heading')
189
  gr.HTML(value=f"""
190
  <p style="font-family: sans-serif; font-size: 16px;">
191
+ A free Artificial Intelligence Chatbot assistant trained on CBSE Class 10 Science Notes to engage and help students and teachers of Puducherry.
 
192
  </p>
193
  """, elem_id='Sub-heading')
194
  #usage_count = get_and_increment_value_count(db,collection_name, field_name)