Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,6 +30,7 @@ st.set_page_config(
|
|
| 30 |
page_title="EZOFIS AI OCR",
|
| 31 |
page_icon="π",
|
| 32 |
layout="wide",
|
|
|
|
| 33 |
initial_sidebar_state="expanded"
|
| 34 |
)
|
| 35 |
|
|
@@ -414,7 +415,7 @@ if uploaded_files and process_button:
|
|
| 414 |
st.subheader(page_filename)
|
| 415 |
c1, c2 = st.columns([1, 2])
|
| 416 |
with c1:
|
| 417 |
-
st.image(image, width=
|
| 418 |
if page_count > 1 and not process_separately:
|
| 419 |
st.info(f"PDF has {page_count} pages. Showing first page only.")
|
| 420 |
with c2:
|
|
@@ -444,7 +445,7 @@ if uploaded_files and process_button:
|
|
| 444 |
st.subheader(f"Image: {f.name}")
|
| 445 |
c1, c2 = st.columns([1, 2])
|
| 446 |
with c1:
|
| 447 |
-
st.image(image, width=
|
| 448 |
with c2:
|
| 449 |
st.write(content)
|
| 450 |
if structured_data and len(structured_data) > 1:
|
|
|
|
| 30 |
page_title="EZOFIS AI OCR",
|
| 31 |
page_icon="π",
|
| 32 |
layout="wide",
|
| 33 |
+
IMAGE_PREVIEW_WIDTH = 1250 # 250 * 5
|
| 34 |
initial_sidebar_state="expanded"
|
| 35 |
)
|
| 36 |
|
|
|
|
| 415 |
st.subheader(page_filename)
|
| 416 |
c1, c2 = st.columns([1, 2])
|
| 417 |
with c1:
|
| 418 |
+
st.image(image, width=IMAGE_PREVIEW_WIDTH)
|
| 419 |
if page_count > 1 and not process_separately:
|
| 420 |
st.info(f"PDF has {page_count} pages. Showing first page only.")
|
| 421 |
with c2:
|
|
|
|
| 445 |
st.subheader(f"Image: {f.name}")
|
| 446 |
c1, c2 = st.columns([1, 2])
|
| 447 |
with c1:
|
| 448 |
+
st.image(image, width=IMAGE_PREVIEW_WIDTH)
|
| 449 |
with c2:
|
| 450 |
st.write(content)
|
| 451 |
if structured_data and len(structured_data) > 1:
|