Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,6 @@ def input_file_setup(uploaded_file):
|
|
59 |
st.set_page_config(page_title="Invoice Information Extractor", page_icon="๐ฎ")
|
60 |
st.title("Invoice Information Extractor ๐")
|
61 |
|
62 |
-
st.write("Upload your invoice (image or PDF)")
|
63 |
-
|
64 |
# Display sample prompts
|
65 |
|
66 |
uploaded_file = st.file_uploader("Upload an Invoice Image ๐ผ๏ธ or PDF ๐", type=["jpg", "jpeg", "png", "pdf"])
|
@@ -71,7 +69,6 @@ selected = sp.pills(" Ask a question related to the invoice. Here are some examp
|
|
71 |
'What is the information about the Products?'],
|
72 |
clearable=True,index=None)
|
73 |
|
74 |
-
# input_query = st.text_input("Ask a question about the invoice", key="input")
|
75 |
input_query = selected if selected else st.text_input("Ask a question about the invoice", key="input")
|
76 |
|
77 |
if uploaded_file is not None:
|
|
|
59 |
st.set_page_config(page_title="Invoice Information Extractor", page_icon="๐ฎ")
|
60 |
st.title("Invoice Information Extractor ๐")
|
61 |
|
|
|
|
|
62 |
# Display sample prompts
|
63 |
|
64 |
uploaded_file = st.file_uploader("Upload an Invoice Image ๐ผ๏ธ or PDF ๐", type=["jpg", "jpeg", "png", "pdf"])
|
|
|
69 |
'What is the information about the Products?'],
|
70 |
clearable=True,index=None)
|
71 |
|
|
|
72 |
input_query = selected if selected else st.text_input("Ask a question about the invoice", key="input")
|
73 |
|
74 |
if uploaded_file is not None:
|