A powerful tool that leverages the GPT-3.5 language model to create quizzes on any topic of your choice, based on an audio prompt input. This application is built using Python and Streamlit, making it easy to create, customize, and share quizzes with others.
Author : MARZOUG Ayoub.
To use the Quiz Generator, you need the following:
git clone https://github.com/ayoub-mg/Audio-ChatGPT-to-Quiz-Form.git
cd Audio-ChatGPT-to-Quiz-Form
python3 -m venv ayoub
source ayoub/bin/activate
Alternatively, you can use conda
to create a virtual environment:
conda create -n ayoub python=3.9
conda activate ayoub
requirements.txt
:pip install -r requirements.txt
To obtain the necessary API key and organization from OpenAI, follow these steps:
You now have the API key and organization ID required for the Audio Quiz Generator.
Open the audio_rec.py
file and add the following in line 16 :
API_KEY = <your-token>
After installing dependencies and setting secrets, execute the Exam Generator app by running:
streamlit run audio_rec.py
The Quiz Generator app should now be accessible in your web browser at http://localhost:8501
.