DocSummarizer_Jimmy / README.md
Jimmy0866's picture
Upload README.md
a9455b1 verified
|
raw
history blame
1.45 kB
metadata
title: DocSummarizer_Jimmy
emoji: 📝
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.16.0
app_file: app.py
pinned: true

DocSummarizer_Jimmy

這是一個簡易的文件摘要工具,支援以下功能:

  • ✅ 輸入純文字進行摘要
  • 📄 上傳 PDF,自動擷取文字並產生摘要
  • 🧠 使用 pszemraj/bart-large-summary-map-reduce 模型
  • 📁 支援範例檔案(放在 examples/ 資料夾)
  • 🚀 Gradio 網頁介面即時輸出摘要結果

🔧 使用方式

本地端執行(建議使用 Python 3.10+)

pip install -r requirements.txt
python app.py

📁 範例檔案

.txt 文件放置於 examples/ 資料夾,Gradio 介面會自動載入並顯示。

你也可以上傳 PDF 或直接輸入文字。


📦 檔案結構

.
├── app.py                  # 主應用程式(Gradio UI)
├── aggregate.py            # 多段摘要彙整模組
├── summarize.py            # 單段文字摘要處理
├── pdf2text.py             # PDF OCR / 文字擷取處理
├── utils.py                # 工具函式
├── requirements.txt        # 所需套件列表
├── examples/
│   └── example1.txt        # 範例檔案
└── README.md               # 說明文件

✨ Credits

  • 🤖 模型:pszemraj/bart-large-summary-map-reduce
  • 📦 前端:Gradio Blocks
  • 👨‍💻 Author: Jimmy