uumerrr684 commited on
Commit
8142630
Β·
verified Β·
1 Parent(s): ca5dc36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -507,11 +507,15 @@ def create_interface():
507
 
508
  # Main chat interface
509
  chatbot_ui = gr.Chatbot(
510
- value=[[None, "πŸ‘‹ **Hello! I'm your AI Assistant!**\n\nI can help you with:\n\nπŸ₯ **Healthcare Billing Codes** - I'm an expert in CPT, HCPCS, ICD-10, and DRG codes\nπŸ’¬ **General Conversation** - Ask me anything!\nπŸ“š **Learning & Education** - Help with various topics\n✍️ **Writing & Creation** - Stories, emails, ideas\nπŸ”§ **Problem Solving** - Let's work through challenges together\n\n**Try asking:**\nβ€’ 'What is billing code A0429?'\nβ€’ 'Help me write an email'\nβ€’ 'Explain quantum physics simply'\nβ€’ 'What's the weather like?'\n\nHow can I assist you today? 😊"]],
 
 
 
 
 
511
  elem_id="chatbot",
512
  show_label=False,
513
  type="messages",
514
- bubble_full_width=False,
515
  height=500
516
  )
517
 
@@ -603,12 +607,11 @@ def create_interface():
603
 
604
  def clear_chat():
605
  assistant.reset_context()
606
- welcome = """πŸ‘‹ **Chat cleared! Ready for a new conversation.**
607
-
608
- I'm here to help with anything you need - from healthcare billing codes to general questions!
609
-
610
- What would you like to know? 😊"""
611
- return [[None, welcome]]
612
 
613
  # Connect events
614
  msg.submit(respond, [msg, chatbot_ui], [msg, chatbot_ui])
 
507
 
508
  # Main chat interface
509
  chatbot_ui = gr.Chatbot(
510
+ value=[
511
+ {
512
+ "role": "assistant",
513
+ "content": "πŸ‘‹ **Hello! I'm your AI Assistant!**\n\nI can help you with:\n\nπŸ₯ **Healthcare Billing Codes** - I'm an expert in CPT, HCPCS, ICD-10, and DRG codes\nπŸ’¬ **General Conversation** - Ask me anything!\nπŸ“š **Learning & Education** - Help with various topics\n✍️ **Writing & Creation** - Stories, emails, ideas\nπŸ”§ **Problem Solving** - Let's work through challenges together\n\n**Try asking:**\nβ€’ 'What is billing code A0429?'\nβ€’ 'Help me write an email'\nβ€’ 'Explain quantum physics simply'\nβ€’ 'What's the weather like?'\n\nHow can I assist you today? 😊"
514
+ }
515
+ ],
516
  elem_id="chatbot",
517
  show_label=False,
518
  type="messages",
 
519
  height=500
520
  )
521
 
 
607
 
608
  def clear_chat():
609
  assistant.reset_context()
610
+ welcome_msg = {
611
+ "role": "assistant",
612
+ "content": "πŸ‘‹ **Chat cleared! Ready for a new conversation.**\n\nI'm here to help with anything you need - from healthcare billing codes to general questions!\n\nWhat would you like to know? 😊"
613
+ }
614
+ return [welcome_msg]
 
615
 
616
  # Connect events
617
  msg.submit(respond, [msg, chatbot_ui], [msg, chatbot_ui])