Skip to content

Commit

Permalink
code cleanup and ruff fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anjus1313 committed Aug 7, 2024
1 parent ebd2def commit f2f5246
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app_doctr.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
from doctr.models import ocr_predictor
from img2table.document import Image
from img2table.ocr import DocTR
import streamlit as st


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

0 comments on commit f2f5246

Please sign in to comment.