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