CoolFace
Apppublic

vergabe/docs

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

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

PDF Content Processor and Text Generator

This 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.

Features

  • PDF content extraction
  • Content structuring into headings and bullet points
  • Text generation based on extracted content and user prompts
  • Separate LLM requests for each heading topic

Setup and Running

  1. 1.Install the required dependencies:
   pip install -r requirements.txt
  1. 1.Run the Streamlit app:
   streamlit run app.py
  1. 1.Open the provided URL in your web browser.

Usage

  1. 1.Upload a PDF file using the file uploader.
  2. 2.The app will extract and structure the content, displaying it as JSON.
  3. 3.Enter a prompt in the text input field.
  4. 4.The app will generate new text for each heading based on the prompt and the extracted content.

Note

This app uses a simple GPT-2 model for demonstration purposes. For production use, consider using a more advanced model or API for better results.