MrGanesh commited on
Commit
2c95677
1 Parent(s): ed306d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -11,15 +11,15 @@ 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:
19
  #chunks = generate_chunks(sentence)
20
  res = summarizer(sentence,
21
- max_length=max,
22
- min_length=min,
23
  #do_sample=do_sample
24
  )
25
  text = ' '.join([summ['summary_text'] for summ in res])
 
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=500)
15
+ #min = st.sidebar.slider('Select min', 10, 100, 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:
19
  #chunks = generate_chunks(sentence)
20
  res = summarizer(sentence,
21
+ max_length=500,
22
+ min_length=100,
23
  #do_sample=do_sample
24
  )
25
  text = ' '.join([summ['summary_text'] for summ in res])