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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -51,8 +51,13 @@ def main():
51
  # Display the summary
52
  st.info("Summarization Complete")
53
  st.success(summary)
 
54
  else:
55
  st.error("Please upload a valid PDF file.")
56
 
 
 
 
 
57
  if __name__ == "__main__":
58
  main()
 
51
  # Display the summary
52
  st.info("Summarization Complete")
53
  st.success(summary)
54
+
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()