CoolFace
Apppublic

NandyG/QA_Generator

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
App README

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

  1. 1.Clone this repository.
  2. 2.Navigate to the project directory.
  3. 3.Install the required dependencies using pip:
bash
pip install -r requirements.txt

Usage

  1. 1.Start the Streamlit app by running the following command in your terminal:
bash
streamlit run app.py
  1. 1.The app will open in your default web browser. You can interact with the app through the browser.
  1. 1.Upload a PDF document using the file upload control. The maximum file size is 20MB.
  1. 1.Enter the number of questions you want to generate.
  1. 1.Choose whether you want to generate answers as well.
  1. 1.Enter any focus keywords.
  1. 1.Click the 'Generate' button to start the question and answer generation process. The app will display a progress bar while it is processing.
  1. 1.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.