NandyG/QA_Generator
0
QA Generator App
This is a Streamlit application that generates questions and answers from an uploaded PDF document. It is useful for teachers, professors, or event organizers who need to prepare exam questions or quick tests.
Installation
- Clone this repository.
- Navigate to the project directory.
- Install the required dependencies using pip:
pip install -r requirements.txtUsage
- Start the Streamlit app by running the following command in your terminal:
streamlit run app.py- The app will open in your default web browser. You can interact with the app through the browser.
- Upload a PDF document using the file upload control. The maximum file size is 20MB.
- Enter the number of questions you want to generate.
- Choose whether you want to generate answers as well.
- Enter any focus keywords.
- Click the 'Generate' button to start the question and answer generation process. The app will display a progress bar while it is processing.
- Once the processing is complete, the app will display the generated questions and their respective answers (if requested).
Note
The quality of the generated questions and answers depends on the content of the uploaded PDF document and the specified focus keywords. The app uses a machine learning model for question and answer generation, and the model's performance may vary based on the input.
