Spaces:
Sleeping
Sleeping
Delete README.md
Browse files
README.md
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
# DocSummarizer_Jimmy
|
2 |
-
|
3 |
-
這是一個簡易的文件摘要工具,支援以下功能:
|
4 |
-
|
5 |
-
- ✅ 輸入純文字進行摘要
|
6 |
-
- 📄 上傳 PDF,自動擷取文字並產生摘要
|
7 |
-
- 🧠 使用 `pszemraj/bart-large-summary-map-reduce` 模型
|
8 |
-
- 📁 支援範例檔案(放在 `examples/` 資料夾)
|
9 |
-
- 🚀 Gradio 網頁介面即時輸出摘要結果
|
10 |
-
|
11 |
-
---
|
12 |
-
|
13 |
-
## 🔧 使用方式
|
14 |
-
|
15 |
-
### 本地端執行(建議使用 Python 3.10+)
|
16 |
-
|
17 |
-
```bash
|
18 |
-
pip install -r requirements.txt
|
19 |
-
python app.py
|
20 |
-
```
|
21 |
-
|
22 |
-
### 📁 範例檔案
|
23 |
-
|
24 |
-
將 `.txt` 文件放置於 `examples/` 資料夾,Gradio 介面會自動載入並顯示。
|
25 |
-
|
26 |
-
你也可以上傳 PDF 或直接輸入文字。
|
27 |
-
|
28 |
-
---
|
29 |
-
|
30 |
-
## 📦 檔案結構
|
31 |
-
|
32 |
-
```bash
|
33 |
-
.
|
34 |
-
├── app.py # 主應用程式(Gradio UI)
|
35 |
-
├── aggregate.py # 多段摘要彙整模組
|
36 |
-
├── summarize.py # 單段文字摘要處理
|
37 |
-
├── pdf2text.py # PDF OCR / 文字擷取處理
|
38 |
-
├── utils.py # 工具函式
|
39 |
-
├── requirements.txt # 所需套件列表
|
40 |
-
├── examples/
|
41 |
-
│ └── example1.txt # 範例檔案
|
42 |
-
└── README.md # 說明文件
|
43 |
-
```
|
44 |
-
|
45 |
-
---
|
46 |
-
|
47 |
-
## ✨ Credits
|
48 |
-
|
49 |
-
- 🤖 模型:`pszemraj/bart-large-summary-map-reduce`
|
50 |
-
- 📦 前端:Gradio Blocks
|
51 |
-
- 👨💻 Author: Jimmy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|