Avdhesh-Varshney / Jarvis

Jarvis is an AI-powered application that allows users to control various devices and applications through voice commands, offering tailored services based on user roles.
https://jarvis-ai-assistant.streamlit.app/
MIT License
33 stars 41 forks source link

Added Diabetes test under Healthcare Programs and resolved the greetings bug on login #35

Closed ChiragGupta16 closed 3 months ago

ChiragGupta16 commented 3 months ago

Closes: Issue #34

Describe the add-ons or changes you've made 📃

Firstly I inserted a new option under Service dropdown named "Healthcare Programs". Then I inserted a option named "Diabetes Test" under it. For implementing it, I trained a model which I saved in ".keras" format and uploaded it in a new folder "dlModels" under models folder. The main code lies in the "source\features\healthcarePrograms\diabetes_test.py" where I created functions containing the form to be filled by the user, loading the model and returning the test result. I imported these functions in "main.py" and implemented it in a short & neat manner using "if statements".

During testing, I found a bug which greeted me every time when I change options, so I fixed the issue by adding a few statements it in "mains.py". Added a comment line before the new greetings code.

Before making the modifications, I gone through whole code and contributed in the same style of the project maintaining the project layout and all new created variables in "main.py" are named after diabetes test to avoid conflicts in future. Also the number of new variables are kept to minimum.

Type of change ☑️

What sort of change have you made:

How Has This Been Tested? ⚙️

I logged in using SuperAdmin, Admin, user and also a created a new ID to test out the features. After login, the greetings were given only once. On selecting the "Diabetes Test" from dropdown, a form appears in which I submitted the validation data of the model. The correct results were shown in the desired manner.

Checklist: ☑️

Screenshots 📷

Service and Program The userName, service type and Program

Form Diabetes Test Form

Result for an example test Example Result

Note to reviewers 📄

I created a new Service for Healthcare because I did not find Diabetes Test fit among Basic Programs. Moreover, I intend to contribute more in Healthcare section.

github-actions[bot] commented 3 months ago

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

Avdhesh-Varshney commented 3 months ago

@ChiragGupta16 But always raise the pr by creating your own seprate branch never commit in main branch