karthickg12 commited on
Commit
d154499
1 Parent(s): 46b181f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -1,19 +1,19 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
  summarizer = pipeline("summarization")
4
- pipe=pipeline("sentiment-analysis")
5
- col1, col2 = st.columns(2)
6
 
7
- with col1:
8
- x=st.button("Sentiment Analysis")
9
- with col2:
10
- y=st.button("Text Summarization")
11
 
12
- if x:
13
- t=st.text_input("Enter the Text")
14
- st.write(pipe(t))
15
- if y:
16
- t1=st.text_input("Enter the Text for Summarization")
17
- st.write(summarizer(t1))
18
 
19
 
 
1
  import streamlit as st
2
  from transformers import pipeline
3
  summarizer = pipeline("summarization")
4
+ # pipe=pipeline("sentiment-analysis")
5
+ # col1, col2 = st.columns(2)
6
 
7
+ # with col1:
8
+ # x=st.button("Sentiment Analysis")
9
+ # with col2:
10
+ # y=st.button("Text Summarization")
11
 
12
+ # if x:
13
+ # t=st.text_input("Enter the Text")
14
+ # st.write(pipe(t))
15
+ # if y:
16
+ t1=st.text_input("Enter the Text for Summarization")
17
+ st.write(summarizer(t1))
18
 
19