CoolFace
Apppublic

vergabe/docs

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
README.md48 linesDownload Raw Back to root
1---2title: PDF Processor and Text Generator3emoji: ๐Ÿ“„4colorFrom: blue5colorTo: green6sdk: streamlit7sdk_version: 1.25.08app_file: app.py9pinned: false10---11 12Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference13 14# PDF Content Processor and Text Generator15 16This Streamlit app extracts content from a PDF file, structures it into headings and content, and then generates new text based on user input and the PDF structure.17 18## Features19 20- PDF content extraction21- Content structuring into headings and bullet points22- Text generation based on extracted content and user prompts23- Separate LLM requests for each heading topic24 25## Setup and Running26 271. Install the required dependencies:28   ```29   pip install -r requirements.txt30   ```31 322. Run the Streamlit app:33   ```34   streamlit run app.py35   ```36 373. Open the provided URL in your web browser.38 39## Usage40 411. Upload a PDF file using the file uploader.422. The app will extract and structure the content, displaying it as JSON.433. Enter a prompt in the text input field.444. The app will generate new text for each heading based on the prompt and the extracted content.45 46## Note47 48This app uses a simple GPT-2 model for demonstration purposes. For production use, consider using a more advanced model or API for better results.