Spaces:
Runtime error
Runtime error
Commit
·
4869e8a
1
Parent(s):
85d0cf7
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,6 @@ def summarize(data, modelname):
|
|
| 25 |
return tokenizer.decode(summary[0])
|
| 26 |
|
| 27 |
|
| 28 |
-
st.sidebar.title("Text Summarization")
|
| 29 |
|
| 30 |
uploaded_file = st.file_uploader("Choose a file",help=" you can choose .txt file")
|
| 31 |
data = ""
|
|
@@ -49,7 +48,7 @@ with col1:
|
|
| 49 |
)
|
| 50 |
else:
|
| 51 |
with st.expander("Text to summarize", expanded=True):
|
| 52 |
-
data = st.text_area("Paste your text below (max 500 words)", height=
|
| 53 |
|
| 54 |
MAX_WORDS = 500
|
| 55 |
import re
|
|
|
|
| 25 |
return tokenizer.decode(summary[0])
|
| 26 |
|
| 27 |
|
|
|
|
| 28 |
|
| 29 |
uploaded_file = st.file_uploader("Choose a file",help=" you can choose .txt file")
|
| 30 |
data = ""
|
|
|
|
| 48 |
)
|
| 49 |
else:
|
| 50 |
with st.expander("Text to summarize", expanded=True):
|
| 51 |
+
data = st.text_area("Paste your text below (max 500 words)", height=100, )
|
| 52 |
|
| 53 |
MAX_WORDS = 500
|
| 54 |
import re
|