pratikshahp commited on
Commit
c7647cf
·
verified ·
1 Parent(s): beccc93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,11 +40,11 @@ st.header("Invoice Extractor")
40
  st.sidebar.title("Upload Image and Enter Question")
41
  uploaded_file = st.sidebar.file_uploader("Upload an invoice image...", type=["jpg", "jpeg", "png"])
42
  if uploaded_file is not None:
 
43
  image = Image.open(uploaded_file)
44
  st.sidebar.image(image, caption="Uploaded Image.", use_column_width=True)
45
 
46
  question = st.text_input("Enter your question about the invoice:")
47
- image = None
48
  submit = st.button("Generate Response")
49
 
50
  if submit:
 
40
  st.sidebar.title("Upload Image and Enter Question")
41
  uploaded_file = st.sidebar.file_uploader("Upload an invoice image...", type=["jpg", "jpeg", "png"])
42
  if uploaded_file is not None:
43
+ image = None
44
  image = Image.open(uploaded_file)
45
  st.sidebar.image(image, caption="Uploaded Image.", use_column_width=True)
46
 
47
  question = st.text_input("Enter your question about the invoice:")
 
48
  submit = st.button("Generate Response")
49
 
50
  if submit: