Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# import streamlit as st
|
| 2 |
# from transformers import pipeline
|
| 3 |
-
|
| 4 |
# # pipe=pipeline("sentiment-analysis")
|
| 5 |
# # col1, col2 = st.columns(2)
|
| 6 |
|
|
@@ -25,7 +25,8 @@ import streamlit as st
|
|
| 25 |
# Use a pipeline as a high-level helper
|
| 26 |
from transformers import pipeline
|
| 27 |
|
| 28 |
-
pipe = pipeline("feature-extraction")
|
| 29 |
|
| 30 |
t=st.text_input("Enter the Text")
|
|
|
|
| 31 |
st.write(pipe(t))
|
|
|
|
| 1 |
# import streamlit as st
|
| 2 |
# from transformers import pipeline
|
| 3 |
+
|
| 4 |
# # pipe=pipeline("sentiment-analysis")
|
| 5 |
# # col1, col2 = st.columns(2)
|
| 6 |
|
|
|
|
| 25 |
# Use a pipeline as a high-level helper
|
| 26 |
from transformers import pipeline
|
| 27 |
|
| 28 |
+
#pipe = pipeline("feature-extraction")
|
| 29 |
|
| 30 |
t=st.text_input("Enter the Text")
|
| 31 |
+
pipe = pipeline("summarization")
|
| 32 |
st.write(pipe(t))
|