Mit1208 commited on
Commit
1ff4e9f
1 Parent(s): 69135cb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -1
README.md CHANGED
@@ -2,4 +2,14 @@ This model is fine-tuned on Medical data to perform summarization.
2
 
3
  Data used from https://data.mendeley.com/datasets/gg58kc7zy7
4
 
5
- Size of data ~ 10k
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  Data used from https://data.mendeley.com/datasets/gg58kc7zy7
4
 
5
+ Size of data ~ 10k
6
+
7
+ ```python
8
+ from transformers import pipeline
9
+ summarizer = pipeline("summarization", model="Mit1208/Med-Sum")
10
+
11
+ long_text = "Here is a lot of text I don't want to read. Replace me"
12
+
13
+ result = summarizer(long_text)
14
+ print(result[0]["summary_text"])
15
+ ```