File size: 1,880 Bytes
d46c4f8
 
 
 
 
 
 
 
bb309bf
d46c4f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bb309bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
title: Multilingual Summarizer
emoji: 🧠
colorFrom: green
colorTo: indigo
sdk: gradio
app_file: app.py
pinned: false
sdk_version: 5.30.0
---

# πŸ“š Multilingual Text & PDF Summarizer with GPT-3.5

This application allows users to upload a PDF file or paste a block of text, choose the language for output, and receive:

- πŸ“„ A **concise summary** of the content  
- 🏷️ An automatically generated **title**  
- πŸ”‘ A list of **5 relevant keywords**

All powered by **OpenAI's GPT-3.5 model**.

---

## 🧰 Features

### βœ… Input Options
- Upload PDF files (supports Unicode and multiple languages)
- Or paste your own text into a textbox

### 🌐 Multilingual Interface & Output
- Choose the **interface language** (UI labels adapt)
- Choose the **summary output language** (used for translation and output)

### πŸ” Auto-Translation
- If the text and output languages differ, the app will first translate, then summarize

### βœ‚οΈ Custom Output Length
- Define a character limit for the summary (e.g., 300 characters)

---

## πŸ“ How to Use

1. Select your preferred **interface language**
2. Click **Continue** to open the summarization tools
3. Choose the **summary language**
4. Define a **character limit**
5. Paste your text or upload a **PDF**
6. Click **Summarize** to see the results

---

## ⚠️ Troubleshooting

- **PDF Error:** If the file is a scanned image, it may not be extractable. Try using OCR first.
- **Translation Note:** Translations are AI-generated and may be approximate
- **No Output:** Make sure you've uploaded a valid file or entered text

---

## πŸ”§ Powered By

- [Gradio](https://gradio.app/)
- [pdfplumber](https://github.com/jsvine/pdfplumber)
- [OpenAI GPT-3.5](https://platform.openai.com/docs)

---

## πŸ“„ License

MIT License

---

## ✨ Created By

[https://huggingface.co/Talip7](https://huggingface.co/Talip7)