Share your repls and programming experiences

← Back to all posts
17
Medical Chatbot

(There are only two conditions so far, asthma and influenza)

To use it, you enter symptoms (keywords) and it iterates through the symptoms and outputs the most likely medical condition.

Commentshotnewtop
2

An idea would be to add mental illnesses, like schizophrenia, or anxiety/depression. I added a few on my own forked one, just to test how it'd work.

Also, if you could add multiple conditions, then it would ask for another symptom, and make it as specific as possible.

2

Hi mihirraov,

Good start. Try creating a response for when someone gives you a keyword that isn't in your list of symptoms. It could be as simple as "symptom not found".

You could also print out your symptoms with a "Please choose from this list."

Maka

1

It doesn't work for me. It says


File "main.py", line 47
print('Most likely: '+ max(count))
^
IndentationError: unindent does not match any outer indentation level


I wonder why this happens