karthickg12 commited on
Commit
843b4d7
1 Parent(s): b828216

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -2,5 +2,10 @@ import streamlit as st
2
  from transformers import pipeline
3
 
4
  pipe=pipeline("sentiment-analysis")
5
- t=st.text_area("text")
6
- st.write(pipe(t))
 
 
 
 
 
 
2
  from transformers import pipeline
3
 
4
  pipe=pipeline("sentiment-analysis")
5
+ t=st.text_area("Enter the Text")
6
+ summarizer = pipeline("summarization")
7
+ t1=st.text_area("Enter the Text for Summarization")
8
+ if t:
9
+ st.write(pipe(t))
10
+ if t1:
11
+ st.write(summarizer(t1))