thisisdev commited on
Commit
d766ce5
·
verified ·
1 Parent(s): 4445d65
Files changed (1) hide show
  1. app.py +14 -14
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
- 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
 
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