Mit1208 commited on
Commit
426751b
1 Parent(s): 1ff4e9f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -3
README.md CHANGED
@@ -8,8 +8,16 @@ Size of data ~ 10k
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
- ```
 
 
 
 
 
 
 
 
 
 
8
  from transformers import pipeline
9
  summarizer = pipeline("summarization", model="Mit1208/Med-Sum")
10
 
11
+ long_text = "The human brain is the inspiration behind neural network architecture. Human brain cells, called neurons, form a complex, highly interconnected network and send electrical signals to each other to help humans process information. Similarly, an artificial neural network is made of artificial neurons that work together to solve a problem. Artificial neurons are software modules, called nodes, and artificial neural networks are software programs or algorithms that, at their core, use computing systems to solve mathematical calculations."
 
12
  result = summarizer(long_text)
13
  print(result[0]["summary_text"])
14
+ ```
15
+
16
+ Output:
17
+ ```
18
+ The human brain is the inspiration behind neural network architecture. Human brain cells, called neurons, form a complex, highly interconnected network and send electrical signals to each other to help humans process information. The artificial neural network is made of artificial neurons that work together to solve a problem.
19
+ ```
20
+
21
+
22
+
23
+ long_text--[https://aws.amazon.com/what-is/neural-network/]