ziaulkarim245 commited on
Commit
92db0b0
·
verified ·
1 Parent(s): 8590484

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -4
README.md CHANGED
@@ -28,11 +28,12 @@ Unlike standard base models, this version was trained on a strictly filtered da
28
  * **Smart Truncation:** Trained to handle articles between 200–1000 words perfectly.
29
  * **No "Robot Speak":** Fine-tuned to produce natural, flowing English rather than broken sentence fragments.
30
 
31
- ## How to Use
32
 
33
- You can run this model in less than 5 lines of code:
 
 
34
 
35
- ```python
36
  from transformers import pipeline
37
 
38
  # Load the model directly from Hugging Face
@@ -46,7 +47,7 @@ rock formations, but are far more permeable. These columns are made up of cool i
46
  semi-transparent in near-infrared light.
47
  """
48
 
49
- # Sample's Summary
50
  summary = summarizer(text, max_length=60, min_length=20, do_sample=False)
51
 
52
  print("Summary:", summary[0]['summary_text'])
 
28
  * **Smart Truncation:** Trained to handle articles between 200–1000 words perfectly.
29
  * **No "Robot Speak":** Fine-tuned to produce natural, flowing English rather than broken sentence fragments.
30
 
31
+ ## 🛠️ How to Use (Python)
32
 
33
+ First, install the required libraries:
34
+ ```bash
35
+ pip install transformers sentencepiece
36
 
 
37
  from transformers import pipeline
38
 
39
  # Load the model directly from Hugging Face
 
47
  semi-transparent in near-infrared light.
48
  """
49
 
50
+ # Summary
51
  summary = summarizer(text, max_length=60, min_length=20, do_sample=False)
52
 
53
  print("Summary:", summary[0]['summary_text'])