Skip to content

Klihe/ai-quiz-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight Quiz Application for Studying

Description

  • A quiz application that checks answers to questions automatically using OpenAI API. (How to get your own OPENAI_API_KEY)
  • Application can have ciritical bugs and is for demo purposes only.

Setup

insert api key into .env file as OPENAI_API_KEY=your_api_key

Run

uv run -m streamlit run src/main.py

Add your own quiz:

  1. Create a new JSON file that follow the structure of example.json in the resources folder.
{
    "title": "Quiz name",
    "quiz": [
        {
            "question": "1. Question?",
            "answer": "Answer to first question."
        },
        {
            "question": "2. Question",
            "answer": "Answer to second question."
        },
        {
            "question": "3. Question",
            "answer": "Answer to third question"
        }
    ]
}
  1. Start application and upload the JSON file using the file uploader in add_delete tab.
  2. Make sure you choose quiz inside manage tab after uploading the file. (If you don't see the quiz try refreshing the page ctrl+r)
  3. Start quizzing yourself in the quiz tab!

About

Lightweight Quiz Application for Studying using OpenAI API. Create custom quizzes in JSON format, upload them, and test your knowledge with automatic answer checking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages