Spaces:
Runtime error
Runtime error
metadata
title: PDFSummarization
emoji: ⚡
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 4.8.0
app_file: app.py
pinned: false
license: mit
PDF Summarization & Audio Tool
Description
This Gradio app summarizes the abstract of a PDF in one sentence and generates an audio file. It uses the "ArtifactAI/led_large_16384_arxiv_summarization" model to generate summaries.
How to Use
Upload PDF: Click on the "Upload PDF" button to upload a PDF file. Ensure that the PDF contains an abstract or introduction section.
View Summary: The app will display a one-sentence summary of the abstract.
Listen to Summary: Click on the "Listen" button to hear an audio summary of the abstract.
Examples
To test the app, you can use the provided example PDF's in the examples
directory. Follow these steps:
- Upload one of the example PDFs.
- Check the generated summary and listen to the audio.
Example PDFs
Notes
- Ensure that the uploaded PDF contains an abstract or introduction section for accurate results.
- For the best experience, use the provided examples first to understand how the app works.
Development
To run the app locally:
pip install -r requirements.txt
python app.py
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference