Spaces:
Sleeping
Sleeping
|
Download README.md from NandyG/QA_Generator: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/spaces/NandyG/QA_Generator/resolve/main/README.md
- Command line
-
hf download hf://spaces/NandyG/QA_Generator/README.md
-
curl -L -o README.md https://huggingface.co/spaces/NandyG/QA_Generator/resolve/main/README.md
1.56 kB
| title: QA Generator | |
| emoji: ⚡ | |
| colorFrom: pink | |
| colorTo: purple | |
| sdk: streamlit | |
| sdk_version: 1.30.0 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| # 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. Clone this repository. | |
| 2. Navigate to the project directory. | |
| 3. Install the required dependencies using pip: | |
| ```bash | |
| pip install -r requirements.txt | |
| ``` | |
| ## Usage | |
| 1. Start the Streamlit app by running the following command in your terminal: | |
| ```bash | |
| streamlit run app.py | |
| ``` | |
| 2. The app will open in your default web browser. You can interact with the app through the browser. | |
| 3. Upload a PDF document using the file upload control. The maximum file size is 20MB. | |
| 4. Enter the number of questions you want to generate. | |
| 5. Choose whether you want to generate answers as well. | |
| 6. Enter any focus keywords. | |
| 7. Click the 'Generate' button to start the question and answer generation process. The app will display a progress bar while it is processing. | |
| 8. 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. |