Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from PIL import Image
|
|
| 6 |
|
| 7 |
with st.sidebar:
|
| 8 |
st.subheader('Text Summarization Using BERT')
|
| 9 |
-
st.divider()
|
| 10 |
st.write('This is a text summarization app using BERT. It is a state of the art model for text summarization. It is a pretrained model which is trained on a large dataset of news articles. It can be used for summarizing any text. It is a very powerful model and is very fast. It is also very accurate.')
|
| 11 |
image = Image.open('NextSentencePrediction.jpg')
|
| 12 |
st.image(image, caption='Bert Model')
|
|
@@ -22,7 +22,7 @@ def summary(txt):
|
|
| 22 |
st.caption(summary)
|
| 23 |
|
| 24 |
st.title('Text Summarization Using BERT')
|
| 25 |
-
st.divider()
|
| 26 |
txt = st.text_area('Enter the Text to extract Summary', '''''')
|
| 27 |
if st.button('Summarize'):
|
| 28 |
summary(txt)
|
|
|
|
| 6 |
|
| 7 |
with st.sidebar:
|
| 8 |
st.subheader('Text Summarization Using BERT')
|
| 9 |
+
#st.divider()
|
| 10 |
st.write('This is a text summarization app using BERT. It is a state of the art model for text summarization. It is a pretrained model which is trained on a large dataset of news articles. It can be used for summarizing any text. It is a very powerful model and is very fast. It is also very accurate.')
|
| 11 |
image = Image.open('NextSentencePrediction.jpg')
|
| 12 |
st.image(image, caption='Bert Model')
|
|
|
|
| 22 |
st.caption(summary)
|
| 23 |
|
| 24 |
st.title('Text Summarization Using BERT')
|
| 25 |
+
#st.divider()
|
| 26 |
txt = st.text_area('Enter the Text to extract Summary', '''''')
|
| 27 |
if st.button('Summarize'):
|
| 28 |
summary(txt)
|