Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,19 +89,20 @@ def main():
|
|
89 |
k1= 5
|
90 |
text_list = []
|
91 |
causal_sents = []
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
#
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
#
|
103 |
-
|
104 |
-
|
|
|
105 |
|
106 |
if uploaded_file is not None:
|
107 |
reader = PdfReader(uploaded_file)
|
|
|
89 |
k1= 5
|
90 |
text_list = []
|
91 |
causal_sents = []
|
92 |
+
with open('sample_anno.pdf') as f:
|
93 |
+
uploaded_file = PdfReader(f)
|
94 |
+
try:
|
95 |
+
#if uploaded_file is not None:
|
96 |
+
uploaded_file = st.sidebar.file_uploader("Choose a file", type = "pdf")
|
97 |
+
#st.stop()
|
98 |
+
except:
|
99 |
+
#uploaded_file = PdfReader('sample_anno.pdf')
|
100 |
+
st.error("Please upload your own PDF to be analyzed")
|
101 |
+
|
102 |
+
#except:
|
103 |
+
#if uploaded_file
|
104 |
+
#st.write("Upload a pdf file...")
|
105 |
+
#st.stop()
|
106 |
|
107 |
if uploaded_file is not None:
|
108 |
reader = PdfReader(uploaded_file)
|