rameshmoorthy commited on
Commit
90beadc
1 Parent(s): 174b7bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -17
app.py CHANGED
@@ -181,24 +181,49 @@ def bot(history, 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)
195
- 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 ')
196
- # count_html = gr.HTML(value=f"""
197
- # <div style="display: flex; justify-content: flex-end;">
198
- # <span style="font-weight: bold; color: maroon; font-size: 18px;">No of Usages:</span>
199
- # <span style="font-weight: bold; color: maroon; font-size: 18px;">{usage_count}</span>
200
- # </div>
201
- # """)
 
202
 
203
  chatbot = gr.Chatbot(
204
  [],
 
181
 
182
 
183
  #with gr.Blocks(theme='Insuz/SimpleIndigo') as demo:
184
+ with gr.Blocks(theme='NoCrypt/miku') as demo:
185
+ with gr.Row().style(equal_height=True):
186
+ with gr.Column(scale=10):
187
+ # gr.Markdown(
188
+ # """
189
+ # # Theme preview: `paris`
190
+ # To use this theme, set `theme='earneleh/paris'` in `gr.Blocks()` or `gr.Interface()`.
191
+ # You can append an `@` and a semantic version expression, e.g. @>=1.0.0,<2.0.0 to pin to a given version
192
+ # of this theme.
193
+ # """
194
+ # )
195
+ gr.HTML(value="""<div style="color: #FF4500;"><h1>CHEERFULL CBSE-</h1> <h1><span style="color: #008000">AI Assisted Fun Learning</span></h1>
196
+ </div>""", elem_id='heading')
197
+
198
+ gr.HTML(value=f"""
199
+ <p style="font-family: sans-serif; font-size: 16px;">
200
+ A free Artificial Intelligence Chatbot assistant trained on CBSE Class 10 Science Notes to engage and help students and teachers of Puducherry.
201
+ </p>
202
+ """, elem_id='Sub-heading')
203
+ #usage_count = get_and_increment_value_count(db,collection_name, field_name)
204
+ gr.HTML(value=f"""<p style="font-family: Arial, sans-serif; font-size: 14px;">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 ')
205
+
206
+ with gr.Column(scale=3):
207
+ gr.Image(value='logo.png',height=300,width=200)
208
+
209
 
210
+ # gr.HTML(value="""<div style="color: #FF4500;"><h1>CHEERFULL CBSE-</h1> <h1><span style="color: #008000">AI Assisted Fun Learning</span></h1>
211
+ # <img src='logo.png' alt="Chatbot" width="50" height="50" />
212
+ # </div>""", elem_id='heading')
213
+
214
+ # gr.HTML(value=f"""
215
+ # <p style="font-family: sans-serif; font-size: 16px;">
216
+ # A free Artificial Intelligence Chatbot assistant trained on CBSE Class 10 Science Notes to engage and help students and teachers of Puducherry.
217
+ # </p>
218
+ # """, elem_id='Sub-heading')
219
+ # #usage_count = get_and_increment_value_count(db,collection_name, field_name)
220
+ # 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 ')
221
+ # # count_html = gr.HTML(value=f"""
222
+ # # <div style="display: flex; justify-content: flex-end;">
223
+ # # <span style="font-weight: bold; color: maroon; font-size: 18px;">No of Usages:</span>
224
+ # # <span style="font-weight: bold; color: maroon; font-size: 18px;">{usage_count}</span>
225
+ # # </div>
226
+ # # """)
227
 
228
  chatbot = gr.Chatbot(
229
  [],