MrGanesh commited on
Commit
bf12410
1 Parent(s): 239b116

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,14 +32,14 @@ def generate_chunks(inp_str):
32
 
33
 
34
  summarizer = load_summarizer()
35
- st.title("Summarize Text")
36
- sentence = st.text_area('Please paste your article :', 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 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,