Spaces:
Runtime error
Runtime error
feat: displaying selected image!
Browse files
app.py
CHANGED
@@ -24,4 +24,9 @@ with st.sidebar:
|
|
24 |
('Receipt Summary', 'Receipt Menu Details', 'Extract all!'))
|
25 |
receipt = st.selectbox('Pick one receipt', ['1', '2', '3', '4', '5', '6'])
|
26 |
|
27 |
-
st.text(f'{information} mode is ON!\
|
|
|
|
|
|
|
|
|
|
|
|
24 |
('Receipt Summary', 'Receipt Menu Details', 'Extract all!'))
|
25 |
receipt = st.selectbox('Pick one receipt', ['1', '2', '3', '4', '5', '6'])
|
26 |
|
27 |
+
st.text(f'{information} mode is ON!\n
|
28 |
+
Target receipt: {receipt}\n
|
29 |
+
(opening image @:./img/receipt-{receipt}.png)')
|
30 |
+
|
31 |
+
image = Image.open(f"./img/receipt-{receipt}.png")
|
32 |
+
st.image(image, caption='Your target receipt')
|