- 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.
insert api key into .env file as OPENAI_API_KEY=your_api_key
uv run -m streamlit run src/main.py
- Create a new JSON file that follow the structure of
example.jsonin theresourcesfolder.
{
"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"
}
]
}- Start application and upload the JSON file using the file uploader in
add_deletetab. - Make sure you choose quiz inside
managetab after uploading the file. (If you don't see the quiz try refreshing the pagectrl+r) - Start quizzing yourself in the
quiztab!