Inspiration
The inspiration for Medirem came from the recognition of the common need for accessible and natural remedies for minor health issues. Many people prefer to explore home remedies before resorting to conventional medical treatments. This project aimed to provide a user-friendly platform that suggests personalized home remedies based on specific ailments.
What it does
Medirem is a web-based application that allows users to input a disease name. The application then sends the input to the OpenAI ChatGPT API, which generates a home remedy recommendation for the specified disease. The remedy is displayed on the same page, providing users with quick and convenient access to natural remedies.
How we built it
Medirem was built using Flask, a Python web framework. The application consists of a single page with an input form. The Flask backend handles both GET and POST requests. For a GET request, the home page is rendered with the input form. When a POST request is made with the disease name, the application sends a request to the OpenAI API, processes the response, and renders the home page with the generated remedy.
Challenges we ran into
One of the primary challenges faced during the development of Medirem was integrating and working with the OpenAI ChatGPT API. This involved understanding the API documentation, structuring the API requests correctly, and handling the API responses in a robust manner. Error handling and ensuring the presence of the necessary keys in the response were important aspects of providing a seamless user experience.
Another challenge was safeguarding user privacy and security while handling API keys. Ensuring that the API keys were securely stored and not exposed to the public required careful implementation and adherence to best practices.
Accomplishments that we're proud of
We are proud of successfully creating a functional web application that connects with the OpenAI ChatGPT API to provide home remedy recommendations. The application is user-friendly, allowing users to easily input their desired disease and receive personalized home remedies in return. The integration of the OpenAI API and the smooth user experience achieved are accomplishments we take pride in.
What we learned
Through the development of Medirem, we gained valuable insights into working with AI language models, specifically the OpenAI ChatGPT API. We learned about structuring API requests, processing API responses, and handling potential errors. Additionally, we honed our skills in web development using Flask, further solidifying our understanding of building web applications with Python.
What's next for Medirem
Moving forward, there are several potential directions for Medirem's development. Some possible future enhancements include:
Expanding the database of diseases and remedies to cover a wider range of ailments. Implementing a user authentication system to allow users to save and access their favorite remedies. Adding a natural language processing component to allow users to ask questions or have conversations about home remedies. Incorporating additional information, such as dosage, preparation instructions, and potential side effects, for each remedy. These improvements would enhance the functionality and usefulness of Medirem, making it an even more valuable resource for individuals seeking natural and holistic remedies for common ailments.
Log in or sign up for Devpost to join the conversation.