You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-7Lines changed: 36 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Easy Webpage Summarizer
2
2
3
-
A Python script designed to summarize webpages from specified URLs using the LangChain framework and the ChatOllama model. It leverages advanced language models to generate detailed summaries, making it an invaluable tool for quickly understanding the content of web-based documents.
3
+
A Python script designed to summarize webpages from specified URLs using the LangChain framework and the ChatOllama model. It leverages advanced language models to generate detailed summaries and translate them to multiple languages, making it an invaluable tool for quickly understanding the content of web-based documents.
Replace `http://example.com/document` with the actual URL of the document you want to summarize.
33
46
47
+
#### Available Languages
48
+
49
+
The following languages are supported for translation:
50
+
- Spanish (default)
51
+
- French
52
+
- German
53
+
- Italian
54
+
- Portuguese
55
+
- Turkish
56
+
- English
57
+
34
58
### Web UI
35
59
36
-
To use the webpage summarizer in you web browser, you can also try gradio app.
60
+
To use the webpage summarizer in your web browser, you can also try the gradio app:
37
61
38
62
```bash
39
63
python app/webui.py
40
64
```
41
65
42
66

43
67
68
+
The web interface includes:
69
+
- URL input for summarization
70
+
- Language selection dropdown (appears after generating summary)
71
+
- Translate button to convert summary to selected language
72
+
44
73
## Docker
45
74
46
75
```bash
@@ -51,14 +80,14 @@ docker run -p 7860:7860 web_summarizer
51
80
docker run -d --network='host' -p 7860:7860 web_summarizer
52
81
```
53
82
54
-
55
83
## Development
56
84
57
85
To contribute to the development of this script, clone the repository, make your changes, and submit a pull request. We welcome contributions that improve the script's functionality or extend its capabilities.
0 commit comments