osanseviero HF staff commited on
Commit
3394268
1 Parent(s): 703ee35

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -5
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
@@ -39,7 +40,6 @@ combine., Add a cover and place in the freezer.After 2 hours, remove from the fr
39
  with a fork. This helps the ice crystals to form properly.Continue doing this every hour until the
40
  granita freezes properly. Scoop the granita into dessert bowls and serve. Garnish with a cucumber
41
  curl or a small sprig of rosemary."
42
- - max_length: 5
43
  metrics:
44
  - Rouge1: 31.2
45
  - RougeL: 24.5
@@ -86,7 +86,7 @@ problem, you must change your diet. Or, you can combat the smell in one of these
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
 
@@ -101,8 +101,8 @@ 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
  ```
 
12
  datasets:
13
  - Wikihow
14
  widget:
15
+ - min_length: 10
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
 
40
  with a fork. This helps the ice crystals to form properly.Continue doing this every hour until the
41
  granita freezes properly. Scoop the granita into dessert bowls and serve. Garnish with a cucumber
42
  curl or a small sprig of rosemary."
 
43
  metrics:
44
  - Rouge1: 31.2
45
  - RougeL: 24.5
 
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
 
 
101
 
102
  output = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
103
 
104
+ print ("\\\\\\\\
105
+ \\\\\\\\
106
+ Summarized text: \\\\\\\\
107
  ",output)
108
  ```