Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -507,11 +507,15 @@ def create_interface():
|
|
507 |
|
508 |
# Main chat interface
|
509 |
chatbot_ui = gr.Chatbot(
|
510 |
-
value=[
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
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])
|