Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,11 @@ def load_summarizer():
|
|
| 8 |
|
| 9 |
summarizer = load_summarizer()
|
| 10 |
st.title("Patent Text Summarizer")
|
| 11 |
-
sentence = st.text_area('Please paste your Patent Text :', height=
|
| 12 |
button = st.button("Summarize")
|
| 13 |
|
| 14 |
-
|
| 15 |
-
min = st.sidebar.slider('Select min', 10,
|
| 16 |
#do_sample = st.sidebar.checkbox("Do sample", value=False)
|
| 17 |
with st.spinner("Generating Patent Summary.."):
|
| 18 |
if button and sentence:
|
|
|
|
| 8 |
|
| 9 |
summarizer = load_summarizer()
|
| 10 |
st.title("Patent Text Summarizer")
|
| 11 |
+
sentence = st.text_area('Please paste your Patent Text :', height=300)
|
| 12 |
button = st.button("Summarize")
|
| 13 |
|
| 14 |
+
max = st.sidebar.slider('Select max', 50, 500, step=10, value=200)
|
| 15 |
+
min = st.sidebar.slider('Select min', 10, 150, step=10, value=100)
|
| 16 |
#do_sample = st.sidebar.checkbox("Do sample", value=False)
|
| 17 |
with st.spinner("Generating Patent Summary.."):
|
| 18 |
if button and sentence:
|