Pavani2704 commited on
Commit
23752c4
1 Parent(s): 6bc015a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit
2
+
3
+ import transformers
4
+ # Use a pipeline as a high-level helper
5
+ from transformers import pipeline
6
+
7
+ pipe = pipeline("summarization", model="google/pegasus-xsum")
8
+
9
+ text=st.text_input("Write your text")
10
+ if st.button("Submit")
11
+ st.write(pipe(text))