Our Inspiration was the Covid-19 Pandemic. This inspired use to create a website that provides easy healthcare for all

Our website takes a list of symptoms from the user and provides advice on how to move forward. (Note: This is not a replacement to healthcare)

This code sets up a chat interface using the Gradio library and OpenAI's GPT-3.5 model. It begins by initializing the OpenAI API key and creating an initial message informing users that they're interacting with a personal doctor specialized in diagnosing patients based on symptoms and providing treatment plans. The core of the interaction is handled by the CustomChatGPT function. This function appends user inputs to a conversation history stored in a list called messages, then uses OpenAI's Chat Completion API to generate responses based on this history. It employs the "gpt-3.5-turbo" model for response generation. The Gradio library is utilized to create a web-based interface where users input their symptoms and receive diagnostic and treatment recommendations. The interface title is set to "Personal Doctor". When the code is executed, the interface is launched and users can converse with the AI-powered personal doctor, with the conversation history facilitating contextually relevant responses throughout the interaction.

One challenge we ran into was the framework of our website. We tried to learn flask but as inexperienced high-schoolers, this proved to be a difficult task. We instead opted to use Gradio as a guide for our website

As a team of 2, we were forced to pick up new roles and move out of our comfort zone. This forced us to learn new languages such a HTML for me and Python for my partner. We are also proud that we could incorporate an LLM API successfully

We are hoping to partner with our local HOSA team and start a new project for the HOSA 24-25

Built With

Share this project:

Updates