MCQ Generator with Streamlit is a web application that allows users to upload PDF or text files, specify the number of questions, subject, and tone, and generate multiple-choice questions (MCQs) based on the provided input. The application utilizes Hugging Face API open source language models for natural language processing and provides feedback on the complexity of the generated quiz.
To run this application:
Clone the repository:
git clone https://github.com/4darsh-Dev/mcqgen.git
2 Install the required dependencies:
pip install -r requirements.txt
Set up environment variables:
Create a .env file in the root directory.
Add your OpenAI API key to the .env file:
HF_API_TOKEN=YOUR_TOKEN_HERE
Install the local package in the virtual environment:
python setup.py install
COMING SOON...
Run the Streamlit application:
streamlit run main.py
Access the application in your web browser.
Upload a PDF or text file, specify the number of questions, subject, and tone, and click the "Create MCQs" button.
View the generated MCQs and the review feedback provided.
logs
directory.