Skip to content

Commit

Permalink
Set first_load to false in doctr version after images loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ginic committed Aug 13, 2024
1 parent 56aa681 commit 64a39ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions app_doctr.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ def authenticate():
page_nums_to_display.extend([str(i + 1)] * len(table_df))
table_dfs = post_processing.clean_up(table_dfs)
table_dfs = post_processing.evaluate_cells(table_dfs)
st.session_state['first_load'] = False
else:
table_dfs = st.session_state['table_dfs'].copy()

Expand Down
1 change: 0 additions & 1 deletion app_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ def authenticate():
# This can normalize table headers to match DHIS2 using Levenstein distance or semantic search
if data_set_selected_id:
edited_dfs = correct_field_names(table_dfs, form)
print(edited_dfs)
save_st_table(edited_dfs)
else:
raise Exception("Select a valid dataset")
Expand Down

0 comments on commit 64a39ff

Please sign in to comment.