Spaces:
Sleeping
Sleeping
Update app_pages/ocr_comparator.py
Browse files
app_pages/ocr_comparator.py
CHANGED
@@ -169,7 +169,7 @@ def app():
|
|
169 |
st.session_state.column_width = [400] + [300 for x in out_reader_type_list[1:]]
|
170 |
if 'columns_color' not in st.session_state:
|
171 |
st.session_state.columns_color = ["rgb(228,26,28)"] + \
|
172 |
-
["rgb(
|
173 |
if 'list_coordinates' not in st.session_state:
|
174 |
st.session_state.list_coordinates = []
|
175 |
|
@@ -946,7 +946,7 @@ def app():
|
|
946 |
st.session_state.columns_size = [2] + [1 for x in reader_type_list[1:]]
|
947 |
st.session_state.column_width = [400] + [300 for x in reader_type_list[1:]]
|
948 |
st.session_state.columns_color = ["rgb(228,26,28)"] + \
|
949 |
-
["rgb(
|
950 |
|
951 |
# Clear caches
|
952 |
easyocr_detect.clear()
|
@@ -1196,7 +1196,7 @@ def app():
|
|
1196 |
st.session_state.column_width = [400] + [300 for x in reader_type_list[1:]]
|
1197 |
if 'columns_color' not in st.session_state:
|
1198 |
st.session_state.columns_color = ["rgb(228,26,28)"] + \
|
1199 |
-
["rgb(
|
1200 |
|
1201 |
if st.session_state.list_coordinates:
|
1202 |
list_coordinates = st.session_state.list_coordinates
|
|
|
169 |
st.session_state.column_width = [400] + [300 for x in out_reader_type_list[1:]]
|
170 |
if 'columns_color' not in st.session_state:
|
171 |
st.session_state.columns_color = ["rgb(228,26,28)"] + \
|
172 |
+
["rgb(79, 43, 255)" for x in out_reader_type_list[1:]]
|
173 |
if 'list_coordinates' not in st.session_state:
|
174 |
st.session_state.list_coordinates = []
|
175 |
|
|
|
946 |
st.session_state.columns_size = [2] + [1 for x in reader_type_list[1:]]
|
947 |
st.session_state.column_width = [400] + [300 for x in reader_type_list[1:]]
|
948 |
st.session_state.columns_color = ["rgb(228,26,28)"] + \
|
949 |
+
["rgb(79, 43, 255)" for x in reader_type_list[1:]]
|
950 |
|
951 |
# Clear caches
|
952 |
easyocr_detect.clear()
|
|
|
1196 |
st.session_state.column_width = [400] + [300 for x in reader_type_list[1:]]
|
1197 |
if 'columns_color' not in st.session_state:
|
1198 |
st.session_state.columns_color = ["rgb(228,26,28)"] + \
|
1199 |
+
["rgb(79, 43, 255)" for x in reader_type_list[1:]]
|
1200 |
|
1201 |
if st.session_state.list_coordinates:
|
1202 |
list_coordinates = st.session_state.list_coordinates
|