Updated
Browse files
app.py
CHANGED
@@ -12,20 +12,20 @@ def main():
|
|
12 |
|
13 |
# If a user has submitted the fieles, we need to call our pipeline
|
14 |
if submit:
|
15 |
-
with st.spinner("Please wait, while we are processing your information...")
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
|
30 |
|
31 |
# Calling the main function
|
|
|
12 |
|
13 |
# If a user has submitted the fieles, we need to call our pipeline
|
14 |
if submit:
|
15 |
+
with st.spinner("Please wait, while we are processing your information..."):
|
16 |
+
pipe = InvoicePipeline(files)
|
17 |
+
df_results = pipe.run()
|
18 |
+
st.write(df_results)
|
19 |
+
|
20 |
+
|
21 |
+
convert_to_csv = df_results.to_csv(index = False).encode("utf-8")
|
22 |
+
st.download_button(
|
23 |
+
"Download",
|
24 |
+
convert_to_csv,
|
25 |
+
"bills.csv",
|
26 |
+
"text/csv",
|
27 |
+
key = "download-csv"
|
28 |
+
)
|
29 |
|
30 |
|
31 |
# Calling the main function
|