Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,14 +32,14 @@ def generate_chunks(inp_str):
|
|
32 |
|
33 |
|
34 |
summarizer = load_summarizer()
|
35 |
-
st.title("
|
36 |
-
sentence = st.text_area('Please paste your
|
37 |
button = st.button("Summarize")
|
38 |
|
39 |
max = st.sidebar.slider('Select max', 50, 500, step=10, value=150)
|
40 |
min = st.sidebar.slider('Select min', 10, 450, step=10, value=50)
|
41 |
do_sample = st.sidebar.checkbox("Do sample", value=False)
|
42 |
-
with st.spinner("Generating Summary.."):
|
43 |
if button and sentence:
|
44 |
chunks = generate_chunks(sentence)
|
45 |
res = summarizer(chunks,
|
|
|
32 |
|
33 |
|
34 |
summarizer = load_summarizer()
|
35 |
+
st.title("Patent Text Summarizer")
|
36 |
+
sentence = st.text_area('Please paste your Patent Text :', height=30)
|
37 |
button = st.button("Summarize")
|
38 |
|
39 |
max = st.sidebar.slider('Select max', 50, 500, step=10, value=150)
|
40 |
min = st.sidebar.slider('Select min', 10, 450, step=10, value=50)
|
41 |
do_sample = st.sidebar.checkbox("Do sample", value=False)
|
42 |
+
with st.spinner("Generating Patent Summary.."):
|
43 |
if button and sentence:
|
44 |
chunks = generate_chunks(sentence)
|
45 |
res = summarizer(chunks,
|