aps19 commited on
Commit
445e71a
1 Parent(s): 39111d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -40,7 +40,7 @@ def main():
40
  uploaded_file = st.file_uploader("Upload a PDF file", type=["pdf"])
41
 
42
  if uploaded_file is not None:
43
- max_length = st.slider("Maximum Summary Length", min_value=50, max_value=1000, step=50, value=500)
44
  min_length = st.slider("Minimum Summary Length", min_value=10, max_value=500, step=10, value=50)
45
 
46
  if st.button("Summarize"):
@@ -55,9 +55,6 @@ def main():
55
  else:
56
  st.error("Please upload a valid PDF file.")
57
 
58
- if st.button("Change Output Limit"):
59
- max_length = st.number_input("Enter Maximum Summary Length", min_value=10, max_value=2000, value=500)
60
- min_length = st.number_input("Enter Minimum Summary Length", min_value=5, max_value=2000, value=50)
61
 
62
  if __name__ == "__main__":
63
  main()
 
40
  uploaded_file = st.file_uploader("Upload a PDF file", type=["pdf"])
41
 
42
  if uploaded_file is not None:
43
+ max_length = st.slider("Maximum Summary Length", min_value=50, max_value=1000, step=20, value=500)
44
  min_length = st.slider("Minimum Summary Length", min_value=10, max_value=500, step=10, value=50)
45
 
46
  if st.button("Summarize"):
 
55
  else:
56
  st.error("Please upload a valid PDF file.")
57
 
 
 
 
58
 
59
  if __name__ == "__main__":
60
  main()