Commit
·
9bf71c1
1
Parent(s):
2a6e06d
Update README.md
Browse files
README.md
CHANGED
@@ -35,17 +35,26 @@ pip install llm-toys
|
|
35 |
```
|
36 |
|
37 |
```python
|
38 |
-
from llm_toys.tasks import
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
#
|
46 |
-
|
47 |
-
|
48 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
```
|
50 |
|
51 |
## Training params
|
|
|
35 |
```
|
36 |
|
37 |
```python
|
38 |
+
from llm_toys.tasks import SummaryAndTopicGenerator
|
39 |
+
|
40 |
+
summary_theme_generator = SummaryAndTopicGenerator()
|
41 |
+
summary_theme_generator.generate_summary_and_topic(
|
42 |
+
"""
|
43 |
+
#Person1#: I'm so excited for the premiere of the latest Studio Ghibli movie!
|
44 |
+
#Person2#: What's got you so hyped?
|
45 |
+
#Person1#: Studio Ghibli movies are pure magic! The animation, storytelling, everything is incredible.
|
46 |
+
#Person2#: Which movie is it?
|
47 |
+
#Person1#: It's called "Whisper of the Wind." It's about a girl on a magical journey to save her village.
|
48 |
+
#Person2#: Sounds amazing! I'm in for the premiere.
|
49 |
+
#Person1#: Great! We're in for a visual masterpiece and a heartfelt story.
|
50 |
+
#Person2#: Can't wait to be transported to their world.
|
51 |
+
#Person1#: It'll be an unforgettable experience, for sure!
|
52 |
+
""".strip()
|
53 |
+
)
|
54 |
+
# {"summary": "#Person1# is excited for the premiere of the latest Studio Ghibli movie.
|
55 |
+
# #Person1# thinks the animation, storytelling, and heartfelt story will be unforgettable.
|
56 |
+
# #Person2# is also excited for the premiere.",
|
57 |
+
# "topic": "Studio ghibli movie"}
|
58 |
```
|
59 |
|
60 |
## Training params
|