Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ from datetime import datetime, timedelta, date
|
|
| 7 |
import requests
|
| 8 |
import google.generativeai as genai
|
| 9 |
from PIL import Image
|
|
|
|
| 10 |
|
| 11 |
from gtts import gTTS
|
| 12 |
import io
|
|
@@ -628,7 +629,7 @@ def render_invoice_processor():
|
|
| 628 |
uploaded_file = st.file_uploader("Upload Invoice Image", type=['png', 'jpg', 'jpeg', 'pdf'])
|
| 629 |
|
| 630 |
if uploaded_file is not None:
|
| 631 |
-
st.image(uploaded_file, caption="Uploaded Invoice",
|
| 632 |
|
| 633 |
if st.button("Extract Invoice Details"):
|
| 634 |
with st.spinner("Extracting invoice information..."):
|
|
|
|
| 7 |
import requests
|
| 8 |
import google.generativeai as genai
|
| 9 |
from PIL import Image
|
| 10 |
+
import re
|
| 11 |
|
| 12 |
from gtts import gTTS
|
| 13 |
import io
|
|
|
|
| 629 |
uploaded_file = st.file_uploader("Upload Invoice Image", type=['png', 'jpg', 'jpeg', 'pdf'])
|
| 630 |
|
| 631 |
if uploaded_file is not None:
|
| 632 |
+
st.image(uploaded_file, caption="Uploaded Invoice", use_container_width=True)
|
| 633 |
|
| 634 |
if st.button("Extract Invoice Details"):
|
| 635 |
with st.spinner("Extracting invoice information..."):
|