cools commited on
Commit
a9f58f0
·
1 Parent(s): c1e25cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -27,7 +27,8 @@ run = st.button("Run")
27
  if run:
28
  with st.spinner("Downloading"):
29
  loc_link = pdf_links[case_num]
30
- shutil.rmtree('PDF Cases/Temp')
 
31
  Scraper.download_loc(loc_link)
32
  Manager.run('Temp')
33
  # file = open("PDF Cases/Temp/processed.pkl",'rb')
 
27
  if run:
28
  with st.spinner("Downloading"):
29
  loc_link = pdf_links[case_num]
30
+ if os.path.exists('PDF Cases/Temp'):
31
+ shutil.rmtree('PDF Cases/Temp')
32
  Scraper.download_loc(loc_link)
33
  Manager.run('Temp')
34
  # file = open("PDF Cases/Temp/processed.pkl",'rb')