Update app.py
Browse files
app.py
CHANGED
|
@@ -40,6 +40,15 @@ if run:
|
|
| 40 |
Tagger.process_file('PDF Cases/Temp', draw=True)
|
| 41 |
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
cols = st.columns(4)
|
| 44 |
image_filenames = [f for f in os.listdir('PDF Cases/Temp') if 'processed.png' in f]
|
| 45 |
for (i,f) in enumerate(image_filenames):
|
|
@@ -48,6 +57,5 @@ if run:
|
|
| 48 |
st.image(image)
|
| 49 |
|
| 50 |
|
| 51 |
-
|
| 52 |
-
st.write(opinions_df)
|
| 53 |
|
|
|
|
| 40 |
Tagger.process_file('PDF Cases/Temp', draw=True)
|
| 41 |
|
| 42 |
|
| 43 |
+
st.header('Opinions')
|
| 44 |
+
opinions_df = pd.read_csv('PDF Cases/Temp/opinions.csv')
|
| 45 |
+
types = opinions_df['Type'].tolist()
|
| 46 |
+
author_sents = opinions_df['Author Sent'].tolist()
|
| 47 |
+
for (t, a_s) in zip(types, author_sents):
|
| 48 |
+
st.text(t + ":\t" + a_s)
|
| 49 |
+
|
| 50 |
+
st.divider()
|
| 51 |
+
|
| 52 |
cols = st.columns(4)
|
| 53 |
image_filenames = [f for f in os.listdir('PDF Cases/Temp') if 'processed.png' in f]
|
| 54 |
for (i,f) in enumerate(image_filenames):
|
|
|
|
| 57 |
st.image(image)
|
| 58 |
|
| 59 |
|
| 60 |
+
|
|
|
|
| 61 |
|