Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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))
|