krum-utsav commited on
Commit
9bf71c1
·
1 Parent(s): 2a6e06d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -11
README.md CHANGED
@@ -35,17 +35,26 @@ pip install llm-toys
35
  ```
36
 
37
  ```python
38
- from llm_toys.tasks import Paraphraser
39
-
40
- paraphraser = Paraphraser()
41
- paraphraser.paraphrase("Hey, can yuo hepl me cancel my last order?")
42
- # "Could you kindly assist me in canceling my previous order?"
43
-
44
- paraphraser.paraphrase("Hey, can yuo hepl me cancel my last order?", tone="professional")
45
- # "I would appreciate guidance on canceling my previous order."
46
-
47
- paraphraser.paraphrase("Hey, can yuo hepl me cancel my last order?", tone="witty")
48
- # "Hey, I need your help with my last order. Can you wave your magic wand and make it disappear?"
 
 
 
 
 
 
 
 
 
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