Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def chatbot_interface(user_message, country, state):
|
|
104 |
if country.lower() == "india":
|
105 |
doctors = get_psychiatrists_by_location(state)
|
106 |
if doctors:
|
107 |
-
doc_info = "\n".join([f"🏥 {doc['name']}\n📍 {doc['hospital']}\n
|
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."
|
|
|
104 |
if country.lower() == "india":
|
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."
|