yiyixin commited on
Commit
3f712e5
·
1 Parent(s): e20e8fb
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -14,6 +14,8 @@ import os
14
  import requests
15
  from backend import *
16
 
 
 
17
  st.set_page_config(page_title="arXiv2Latex Downloader", page_icon=":page_with_curl:", layout="wide", initial_sidebar_state="expanded", menu_items={
18
  "About": "Download the source latex code of multiple arXiv paper with one click"
19
  })
@@ -40,8 +42,8 @@ if crawling_or_not:
40
  pdf_lists = [i.strip() for i in pdf_lists if len(i) > 0]
41
  # TODO: limit the number of paper up to 10 since I am not sure that whether base64 support large file download
42
  try:
43
- if len(pdf_lists) > 10:
44
- st.warning("Currently only support up to 10 papers. Please input less than 10 papers.")
45
  else:
46
  # parsing
47
  base='./download/'
 
14
  import requests
15
  from backend import *
16
 
17
+ predefined_limits = 10000
18
+
19
  st.set_page_config(page_title="arXiv2Latex Downloader", page_icon=":page_with_curl:", layout="wide", initial_sidebar_state="expanded", menu_items={
20
  "About": "Download the source latex code of multiple arXiv paper with one click"
21
  })
 
42
  pdf_lists = [i.strip() for i in pdf_lists if len(i) > 0]
43
  # TODO: limit the number of paper up to 10 since I am not sure that whether base64 support large file download
44
  try:
45
+ if len(pdf_lists) > predefined_limits:
46
+ st.warning(f"Currently only support up to {predefined_limits} papers. Please input less than {predefined_limits} papers.")
47
  else:
48
  # parsing
49
  base='./download/'