UI 2 Error Handling and Data Dictionary

This commit is contained in:
AARETE\agupta
2024-06-28 16:28:40 -05:00
parent d8ed302349
commit d588c8f437
2 changed files with 5 additions and 2 deletions
+5 -2
View File
@@ -191,7 +191,7 @@ if client:
# elif field_group == 'Timeline':
# fields = fields[fields['PRIORITY'] == 'E']
button_cols = st.columns([1,1,8])
button_cols = st.columns([1,2,6])
with button_cols[0]:
if st.button("Show PDF"):
if file_name == None or file_name == "All":
@@ -221,7 +221,10 @@ if client:
query = f'select * from "DOCZY_PIPELINE_RAW_OUTPUT_B" where batch_id = \'{batch_id}\''
cur.execute(query)
df2 = pd.DataFrame.from_records(iter(cur), columns=[x[0] for x in cur.description])
else: st.error('Please select a Field Group')
else:
st.error('Please select a Field Group')
df2 = pd.DataFrame(columns=['Contract Name','Field Name', 'SF_DB_COL_NAME', 'Snippet','Page Number'
, 'Field Extracted Value', 'Actual Value','Imputed Value'])
except:
df2 = pd.DataFrame(columns=['Contract Name','Field Name', 'SF_DB_COL_NAME', 'Snippet','Page Number'
, 'Field Extracted Value', 'Actual Value','Imputed Value'])