Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ uploaded_files = st.file_uploader("Upload 2 Financial PDFs",
|
|
49 |
type="pdf",
|
50 |
accept_multiple_files=True)
|
51 |
|
52 |
-
if
|
53 |
all_docs = []
|
54 |
with st.spinner("Processing Multiple Financial Documents..."):
|
55 |
for uploaded_file in uploaded_files:
|
@@ -186,7 +186,5 @@ if len(uploaded_files) == 2:
|
|
186 |
file_name=f"Comparative_Analysis_{timestamp}.txt",
|
187 |
mime="text/plain")
|
188 |
|
189 |
-
elif len(uploaded_files) > 0:
|
190 |
-
st.warning("Please upload exactly 2 financial documents for comparative analysis")
|
191 |
else:
|
192 |
st.info("Please upload 2 PDF financial reports to begin comparative analysis")
|
|
|
49 |
type="pdf",
|
50 |
accept_multiple_files=True)
|
51 |
|
52 |
+
if uploaded_files:
|
53 |
all_docs = []
|
54 |
with st.spinner("Processing Multiple Financial Documents..."):
|
55 |
for uploaded_file in uploaded_files:
|
|
|
186 |
file_name=f"Comparative_Analysis_{timestamp}.txt",
|
187 |
mime="text/plain")
|
188 |
|
|
|
|
|
189 |
else:
|
190 |
st.info("Please upload 2 PDF financial reports to begin comparative analysis")
|