sandeepgiri908 commited on
Commit
987af52
·
verified ·
1 Parent(s): 64f7110

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def chatbot_interface(user_message, country, state):
105
  doctors = get_psychiatrists_by_location(state)
106
  if doctors:
107
  doc_info = "\n".join([f"🏥 {doc['name']}\n📍 {doc['hospital']}\n🧠 {doc['specialization']}\n" for doc in doctors])
108
- return f"Chatbot: {response}\n\n🔹 Here are some psychiatrists in {state}:\n{doc_info}"
109
  else:
110
  return f"Chatbot: {response}\n\n⚠️ Sorry, no specific doctors found for {state}. Please visit a nearby hospital."
111
  else:
 
105
  doctors = get_psychiatrists_by_location(state)
106
  if doctors:
107
  doc_info = "\n".join([f"🏥 {doc['name']}\n📍 {doc['hospital']}\n🧠 {doc['specialization']}\n" for doc in doctors])
108
+ return f"Chatbot: {response}\n\n🔹 Your mental health is important. If you're struggling, please don't hesitate to seek help. Here are some top psychiatrists in {state} who can assist you:\n{doc_info}"
109
  else:
110
  return f"Chatbot: {response}\n\n⚠️ Sorry, no specific doctors found for {state}. Please visit a nearby hospital."
111
  else: