Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -433,10 +433,10 @@ class TableExtractionPipeline():
|
|
| 433 |
'''
|
| 434 |
image = Image.open(image_path).convert("RGB")
|
| 435 |
model, probas, bboxes_scaled = table_detector(image, THRESHOLD_PROBA=TD_THRESHOLD)
|
| 436 |
-
|
| 437 |
-
if bboxes_scaled.nelement() == 0:
|
| 438 |
-
st.write('No table found in the pdf-page image')
|
| 439 |
-
return ''
|
| 440 |
|
| 441 |
# try:
|
| 442 |
# st.write('Document: '+image_path.split('/')[-1])
|
|
|
|
| 433 |
'''
|
| 434 |
image = Image.open(image_path).convert("RGB")
|
| 435 |
model, probas, bboxes_scaled = table_detector(image, THRESHOLD_PROBA=TD_THRESHOLD)
|
| 436 |
+
st.write(bboxes_scaled)
|
| 437 |
+
#if bboxes_scaled.nelement() == 0:
|
| 438 |
+
#st.write('No table found in the pdf-page image')
|
| 439 |
+
#return ''
|
| 440 |
|
| 441 |
# try:
|
| 442 |
# st.write('Document: '+image_path.split('/')[-1])
|