Spaces:
Runtime error
Runtime error
File size: 282 Bytes
06d98e9 843b4d7 |
1 2 3 4 5 6 7 8 9 10 11 |
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)) |