Inspiration

I know some professors have a lot of course work to do and do not get the opportunity to grade students assignment on time. Thus, I wanted to help them with a grading buddy who would assist them in checking the answers and provide an initial grade and feedback in an instant, so all they have to do is...... post the grades on canvas!

What it does

User(Professor) uploads his/her file containing questions and answers along with the answers of his/her student(s). Based on the prompt given to ChatGPT, it compares the answers of the professors to the answers of the students, and gives a tentative grade and feedback on the wrong answers.

How we built it

The entire code was typed in python using the following libraries: streamlit, PyPDF2 and openai (API). We used streamlit functions to accept user data to further extract text from the pdfs using PyPDF2. An additional option of choosing the total points of the assignment is given. Using the data extracted we used openAI API to check the answers by passing in the text of the pdfs into a prompt that can be modified.

Challenges we ran into

We were unable to use openAI API without inputing card information as the RPM(request per minute) is limited to 3 if you are using the free version, and our code had more than 11 requests for a single pdf. The output is still not perfect and the prompt gives us fluctuating grades. We figured it out in the end and completed the project!

Accomplishments that we're proud of

We started doing this project at 9 pm as before that we were doing another one, but due to lack of time and resources we could only complete it half-way. This was our first hackathon and what we are most proud of is the fact that we overcame our adversities and completed this hackathon.

What we learned

Hackathons are bounded by time, so whatever idea you choose should be feasible during the time limit. Dividing tasks efficiently is important. Do not start coding before you have confirmed that you have all the resources required to complete the project otherwise you are wasting your precious time. If you are tired of running just walk, the destination stays the same.

What's next for Grading Buddy

Maybe further modifying it and providing the professor the ability to select a subject and more.

Built With

Share this project:

Updates