dataprincess commited on
Commit
0a85d7d
·
verified ·
1 Parent(s): b4fac0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -209,20 +209,14 @@ def get_response(query):
209
  return response
210
 
211
  def log_chats(history):
212
- with open("chat_Logs.json", "a") as file:
213
  json.dump(history, file)
214
 
215
  with gr.Blocks() as iface:
216
  gr.Markdown(
217
  """
218
  # Anjibot
219
- ### Hi friend! I'm Anjibot, CS Group A AI Course Rep.
220
-
221
- #### As you interact with me, please note:
222
- - Our chats are not private.
223
- - I'm still undergoing training (I'm not perfect).
224
- - I'm not ChatGPT (My knowledge base is limited to class-related issues).
225
- - I'm British ;)
226
  """)
227
 
228
  chatbot = gr.Chatbot()
@@ -230,6 +224,16 @@ with gr.Blocks() as iface:
230
  submit = gr.Button("Submit")
231
  clear = gr.ClearButton([msg, chatbot])
232
 
 
 
 
 
 
 
 
 
 
 
233
  def respond(message, chat_history):
234
  bot_message = get_response(message)
235
  chat_history.append(
 
209
  return response
210
 
211
  def log_chats(history):
212
+ with open("chat_Logs.json", "w") as file:
213
  json.dump(history, file)
214
 
215
  with gr.Blocks() as iface:
216
  gr.Markdown(
217
  """
218
  # Anjibot
219
+ Hi friend! I'm Anjibot, CS Group A AI Course Rep. How can I assist you today?
 
 
 
 
 
 
220
  """)
221
 
222
  chatbot = gr.Chatbot()
 
224
  submit = gr.Button("Submit")
225
  clear = gr.ClearButton([msg, chatbot])
226
 
227
+ with gr.Accordion("Read this, pleaseeee"):
228
+ gr.Markdown(
229
+ """
230
+ #### As you interact with me, please note:
231
+ - Our chats are not private.
232
+ - I'm still undergoing training (I'm not perfect).
233
+ - I'm not ChatGPT (My knowledge base is limited to class-related issues).
234
+ - I'm British ;)
235
+ """)
236
+
237
  def respond(message, chat_history):
238
  bot_message = get_response(message)
239
  chat_history.append(