Update app.py
Browse files
app.py
CHANGED
|
@@ -15,13 +15,14 @@ if run:
|
|
| 15 |
# Scraper.download_loc('https://tile.loc.gov/storage-services/service/ll/usrep/usrep200/usrep200361/usrep200361.pdf')
|
| 16 |
Scraper.download_loc(loc_link)
|
| 17 |
Manager.run('Temp')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
cols = st.columns(4)
|
| 20 |
image_filenames = [f for f in os.listdir('PDF Cases/Temp') if 'processed.png' in f]
|
| 21 |
for (i,f) in enumerate(image_filenames):
|
| 22 |
image = cv2.imread('PDF Cases/Temp/' + f)
|
| 23 |
with cols[i%4]:
|
| 24 |
-
st.image(image)
|
| 25 |
-
file = open("PDF Cases/Temp/processed.pkl",'rb')
|
| 26 |
-
C = pickle.load(file)
|
| 27 |
-
st.write(C.date)
|
|
|
|
| 15 |
# Scraper.download_loc('https://tile.loc.gov/storage-services/service/ll/usrep/usrep200/usrep200361/usrep200361.pdf')
|
| 16 |
Scraper.download_loc(loc_link)
|
| 17 |
Manager.run('Temp')
|
| 18 |
+
file = open("PDF Cases/Temp/processed.pkl",'rb')
|
| 19 |
+
C = pickle.load(file)
|
| 20 |
+
st.write("Case Name: " + C.case_name)
|
| 21 |
+
st.write(C.date)
|
| 22 |
|
| 23 |
cols = st.columns(4)
|
| 24 |
image_filenames = [f for f in os.listdir('PDF Cases/Temp') if 'processed.png' in f]
|
| 25 |
for (i,f) in enumerate(image_filenames):
|
| 26 |
image = cv2.imread('PDF Cases/Temp/' + f)
|
| 27 |
with cols[i%4]:
|
| 28 |
+
st.image(image)
|
|
|
|
|
|
|
|
|