ECUiVADE commited on
Commit
96ef2a5
1 Parent(s): 452fe1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -240,7 +240,7 @@ class ChatbotAPP:
240
  def create_app(self): # Method to launch the Gradio app
241
 
242
  with gr.Blocks(theme=gr.themes.Soft()) as app:
243
- gr.Markdown("# ECU-IVADE: Conversational AI Model for Aggressive Patient Behavior (Beta Testing)")
244
  unique_id_display = gr.Textbox(value=self.unique_id, label="Session Unique ID", interactive=False,show_copy_button = True)
245
 
246
  with gr.Tab("Terms and Conditions"):
@@ -253,7 +253,7 @@ class ChatbotAPP:
253
  #submit_info = gr.Button("Submit")
254
  gr.Markdown("## Terms and Conditions")
255
  gr.Markdown("""
256
- Before using our chatbot, please read the following terms and conditions carefully:
257
 
258
  - **Data Collection**: Our chatbot collects chat logs for the purpose of improving our services and user experience.
259
  - **Privacy**: We ensure the confidentiality and security of your data, in line with our privacy policy.
@@ -269,8 +269,8 @@ class ChatbotAPP:
269
  start_chat_button.click(self.start_chat_button_fn, inputs=[agree_status], outputs=[status_label])
270
  #status_textbox = gr.Textbox(interactive = False)
271
 
272
- with gr.Tab("Chat Bot"):
273
- chatbot = gr.Chatbot()
274
  msg = gr.Textbox(label="Type your message")
275
  send = gr.Button("Send")
276
  clear = gr.Button("Clear Chat")
@@ -278,7 +278,7 @@ class ChatbotAPP:
278
  clear.click(self.clear_chat_window, inputs=[], outputs=chatbot)
279
 
280
  with gr.Tab("Reset"):
281
- reset_button = gr.Button("Reset ChatBot Instance")
282
  reset_output = gr.Textbox(label="Reset Output", interactive=False)
283
  reset_button.click(self.reset_all, inputs=[], outputs=[reset_output,unique_id_display])
284
  return app
 
240
  def create_app(self): # Method to launch the Gradio app
241
 
242
  with gr.Blocks(theme=gr.themes.Soft()) as app:
243
+ gr.Markdown("# ECU-IVADE: Chat With Barry")
244
  unique_id_display = gr.Textbox(value=self.unique_id, label="Session Unique ID", interactive=False,show_copy_button = True)
245
 
246
  with gr.Tab("Terms and Conditions"):
 
253
  #submit_info = gr.Button("Submit")
254
  gr.Markdown("## Terms and Conditions")
255
  gr.Markdown("""
256
+ Before Talking with Barry, please read the following terms and conditions carefully:
257
 
258
  - **Data Collection**: Our chatbot collects chat logs for the purpose of improving our services and user experience.
259
  - **Privacy**: We ensure the confidentiality and security of your data, in line with our privacy policy.
 
269
  start_chat_button.click(self.start_chat_button_fn, inputs=[agree_status], outputs=[status_label])
270
  #status_textbox = gr.Textbox(interactive = False)
271
 
272
+ with gr.Tab("Barry"):
273
+ chatbot = gr.Chatbot(show_label=True,label="Chat With Barry")
274
  msg = gr.Textbox(label="Type your message")
275
  send = gr.Button("Send")
276
  clear = gr.Button("Clear Chat")
 
278
  clear.click(self.clear_chat_window, inputs=[], outputs=chatbot)
279
 
280
  with gr.Tab("Reset"):
281
+ reset_button = gr.Button("Reset The Conversation With Barry")
282
  reset_output = gr.Textbox(label="Reset Output", interactive=False)
283
  reset_button.click(self.reset_all, inputs=[], outputs=[reset_output,unique_id_display])
284
  return app