Skip to content

Commit f2f5246

Browse files
committed
code cleanup and ruff fix
1 parent ebd2def commit f2f5246

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app_doctr.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
from doctr.models import ocr_predictor
1616
from img2table.document import Image
1717
from img2table.ocr import DocTR
18-
import streamlit as st
19-
2018

2119
# Hardcoded period types and formatting, probably won't update but can get them through API
2220
PERIOD_TYPES = {
@@ -304,7 +302,7 @@ def clean_up(table_dfs):
304302
for col in range(table.shape[1]):
305303
cell_value = table.iloc[row][col]
306304
print(cell_value)
307-
if cell_value == None:
305+
if cell_value is None or cell_value=="None":
308306
table.iloc[row][col] = ""
309307
print(table.iloc[row][col])
310308
print(table_dfs)

0 commit comments

Comments
 (0)