Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# from backend import ResultPipeline
|
2 |
+
import streamlit as st
|
3 |
+
def main():
|
4 |
+
# Just for setting up the title & head bar
|
5 |
+
st.set_page_config(page_title = "Bill App")
|
6 |
+
st.title("Bill Extractor")
|
7 |
+
|
8 |
+
# This section will handle uploadation of files
|
9 |
+
files = st.file_uploader("Upload the files here..", type = ["pdf"], accept_multiple_files = True)
|
10 |
+
submit = st.button("Extract")
|
11 |
+
|
12 |
+
# If a user has submitted the fieles, we need to call our pipeline
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
# Calling the main function
|
17 |
+
if __name__ == "__main__":
|
18 |
+
main()
|