apps / app.py
karthickg12's picture
Update app.py
843b4d7 verified
raw
history blame
282 Bytes
import streamlit as st
from transformers import pipeline
pipe=pipeline("sentiment-analysis")
t=st.text_area("Enter the Text")
summarizer = pipeline("summarization")
t1=st.text_area("Enter the Text for Summarization")
if t:
st.write(pipe(t))
if t1:
st.write(summarizer(t1))