osanseviero
commited on
Commit
•
5deac0d
1
Parent(s):
d0fbae8
Update README.md
Browse files
README.md
CHANGED
@@ -12,6 +12,7 @@ tags:
|
|
12 |
datasets:
|
13 |
- Wikihow
|
14 |
widget:
|
|
|
15 |
- text: "Lack of fluids can lead to dry mouth, which is a leading cause of bad breath. Water
|
16 |
can also dilute any chemicals in your mouth or gut that are causing bad breath., Studies show that
|
17 |
eating 6 ounces of yogurt a day reduces the level of odor-causing compounds in the mouth. In
|
@@ -85,7 +86,8 @@ problem, you must change your diet. Or, you can combat the smell in one of these
|
|
85 |
water to dilute the ketones.Chew sugarless gum or suck on sugarless mints.Chew mint leaves.
|
86 |
"""
|
87 |
|
88 |
-
preprocess_text = text.strip().replace("\
|
|
|
89 |
tokenized_text = tokenizer.encode(preprocess_text, return_tensors="pt").to(device)
|
90 |
|
91 |
summary_ids = model.generate(
|
@@ -99,5 +101,8 @@ summary_ids = model.generate(
|
|
99 |
|
100 |
output = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
101 |
|
102 |
-
print ("\
|
|
|
|
|
|
|
103 |
```
|
|
|
12 |
datasets:
|
13 |
- Wikihow
|
14 |
widget:
|
15 |
+
- max_length: 5
|
16 |
- text: "Lack of fluids can lead to dry mouth, which is a leading cause of bad breath. Water
|
17 |
can also dilute any chemicals in your mouth or gut that are causing bad breath., Studies show that
|
18 |
eating 6 ounces of yogurt a day reduces the level of odor-causing compounds in the mouth. In
|
|
|
86 |
water to dilute the ketones.Chew sugarless gum or suck on sugarless mints.Chew mint leaves.
|
87 |
"""
|
88 |
|
89 |
+
preprocess_text = text.strip().replace("\
|
90 |
+
","")
|
91 |
tokenized_text = tokenizer.encode(preprocess_text, return_tensors="pt").to(device)
|
92 |
|
93 |
summary_ids = model.generate(
|
|
|
101 |
|
102 |
output = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
103 |
|
104 |
+
print ("\
|
105 |
+
\
|
106 |
+
Summarized text: \
|
107 |
+
",output)
|
108 |
```
|