Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,13 @@ import pickle
|
|
| 8 |
|
| 9 |
st.set_page_config(layout="wide")
|
| 10 |
|
| 11 |
-
loc_link = st.text_input('LOC Link')
|
|
|
|
|
|
|
| 12 |
run = st.button("Run")
|
| 13 |
if run:
|
| 14 |
with st.spinner("Downloading"):
|
| 15 |
-
|
| 16 |
Scraper.download_loc(loc_link)
|
| 17 |
Manager.run('Temp')
|
| 18 |
# file = open("PDF Cases/Temp/processed.pkl",'rb')
|
|
|
|
| 8 |
|
| 9 |
st.set_page_config(layout="wide")
|
| 10 |
|
| 11 |
+
# loc_link = st.text_input('LOC Link', placeholder='https://tile.loc.gov/storage-services/service/ll/usrep/usrep200/usrep200361/usrep200361.pdf')
|
| 12 |
+
volume = st.slider('Volume', 200, 550, 1)
|
| 13 |
+
page = st.slider('Page', 0, 1200, 1)
|
| 14 |
run = st.button("Run")
|
| 15 |
if run:
|
| 16 |
with st.spinner("Downloading"):
|
| 17 |
+
loc_link = 'https://tile.loc.gov/storage-services/service/ll/usrep/usrep' + str(volume)'/usrep' + str(volume) + str(page)+'/usrep' + str(volume) + str(page)+'.pdf'
|
| 18 |
Scraper.download_loc(loc_link)
|
| 19 |
Manager.run('Temp')
|
| 20 |
# file = open("PDF Cases/Temp/processed.pkl",'rb')
|