Update app.py
Browse files
app.py
CHANGED
|
@@ -36,14 +36,7 @@ if run:
|
|
| 36 |
Scraper.download_loc(loc_link)
|
| 37 |
ImageProcessor.process_file('PDF Cases/Temp')
|
| 38 |
TextProcessor.process_file('PDF Cases/Temp')
|
| 39 |
-
|
| 40 |
-
# file = open("PDF Cases/Temp/processed.pkl",'rb')
|
| 41 |
-
# C = pickle.load(file)
|
| 42 |
-
# st.write("Case Name:\t" + C.case_name)
|
| 43 |
-
# st.write(C.date)
|
| 44 |
-
# st.write("Citation:\t" + C.case_citation)
|
| 45 |
-
# st.write("Cert Info:\t" + C.cert_info)
|
| 46 |
-
# st.write("Majority:\t" + C.majority.author)
|
| 47 |
|
| 48 |
cols = st.columns(4)
|
| 49 |
image_filenames = [f for f in os.listdir('PDF Cases/Temp') if 'processed.png' in f]
|
|
@@ -52,4 +45,6 @@ if run:
|
|
| 52 |
with cols[i%4]:
|
| 53 |
st.image(image)
|
| 54 |
paras_df = pd.read_csv('PDF Cases/Temp/paragraphs.csv')
|
| 55 |
-
st.write(paras_df)
|
|
|
|
|
|
|
|
|
| 36 |
Scraper.download_loc(loc_link)
|
| 37 |
ImageProcessor.process_file('PDF Cases/Temp')
|
| 38 |
TextProcessor.process_file('PDF Cases/Temp')
|
| 39 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
cols = st.columns(4)
|
| 42 |
image_filenames = [f for f in os.listdir('PDF Cases/Temp') if 'processed.png' in f]
|
|
|
|
| 45 |
with cols[i%4]:
|
| 46 |
st.image(image)
|
| 47 |
paras_df = pd.read_csv('PDF Cases/Temp/paragraphs.csv')
|
| 48 |
+
st.write(paras_df)
|
| 49 |
+
st.markdown("This is a test")
|
| 50 |
+
st.markdown("> This is another test")
|