Update app.py
Browse files
app.py
CHANGED
@@ -55,8 +55,8 @@ def input_file_setup(uploaded_file):
|
|
55 |
raise FileNotFoundError("File not found")
|
56 |
|
57 |
st.set_page_config(page_title="Invoice Extractor", page_icon="๐ฎ")
|
58 |
-
st.title("Invoice Extractor
|
59 |
-
st.write("Upload your invoice
|
60 |
|
61 |
input_query = st.text_input("Ask a question", key="input")
|
62 |
uploaded_file = st.file_uploader("Upload an image or PDF", type=["jpg", "jpeg", "png", "pdf"])
|
@@ -77,5 +77,5 @@ You are an expert in understanding invoices. We will show you an invoice and you
|
|
77 |
if submit:
|
78 |
file_data = input_file_setup(uploaded_file)
|
79 |
response = get_gemini_response(input_prompt, file_data, input_query)
|
80 |
-
st.subheader("Response
|
81 |
st.write(response)
|
|
|
55 |
raise FileNotFoundError("File not found")
|
56 |
|
57 |
st.set_page_config(page_title="Invoice Extractor", page_icon="๐ฎ")
|
58 |
+
st.title("Invoice Extractor")
|
59 |
+
st.write("Upload your invoice๐")
|
60 |
|
61 |
input_query = st.text_input("Ask a question", key="input")
|
62 |
uploaded_file = st.file_uploader("Upload an image or PDF", type=["jpg", "jpeg", "png", "pdf"])
|
|
|
77 |
if submit:
|
78 |
file_data = input_file_setup(uploaded_file)
|
79 |
response = get_gemini_response(input_prompt, file_data, input_query)
|
80 |
+
st.subheader("Response๐ค:")
|
81 |
st.write(response)
|