krishnasai99 commited on
Commit
b28ac3b
·
1 Parent(s): 4402155

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -16,20 +16,20 @@ if uploaded_file is not None:
16
  st.audio(audio_bytes, format='audio/mp3')
17
 
18
 
19
- #pipe = pipeline("sentiment-analysis")
20
- #text = st.text_area('Enter some Text!')
21
 
22
 
23
- #summarizer = load_summarizer()
24
- #st.title("Summarize Text")
25
- #sentence = st.text_area('Please paste your article :', height=30)
26
- #button = st.button("Click")
27
 
28
 
29
 
30
- #if text:
31
- # out=pipe(text)
32
- # st.json(out)
33
 
34
 
35
 
 
16
  st.audio(audio_bytes, format='audio/mp3')
17
 
18
 
19
+ pipe = pipeline("sentiment-analysis")
20
+ text = st.text_area('Enter some Text!')
21
 
22
 
23
+ summarizer = load_summarizer()
24
+ st.title("Summarize Text")
25
+ sentence = st.text_area('Please paste your article :', height=30)
26
+ button = st.button("Click")
27
 
28
 
29
 
30
+ if text:
31
+ out=pipe(text)
32
+ st.json(out)
33
 
34
 
35