load history and raw data from sf

This commit is contained in:
Mayank Aamseek
2024-03-27 15:17:29 +05:30
parent 9a25414e6d
commit 4eb43aae6d
+4 -2
View File
@@ -467,7 +467,9 @@ if user_mail in user_list:
except:
print('post processing failed')
df['Contract ID'] = contract_list_f
# df['Contract ID'] = contract_list_f
df['Contract ID'] = range(len(contract_list_f))
# to be deleted later
contract_list_f = [contract.rsplit('/',1)[1].replace(' MU','').replace('_MU','').replace('.txt','') for contract in contract_list_f]
@@ -511,7 +513,7 @@ if user_mail in user_list:
if mode == 'Multiple fields':
field = field_group
history.loc[len(history.index)] = [field, str(contract_count), None, datetime.now().strftime("%Y-%m-%d %H:%M:%S"), accuracy, attempt]
history.loc[len(history.index)] = [field, str(contract_count), user_mail, datetime.now().strftime("%Y-%m-%d %H:%M:%S"), accuracy, attempt]
# df.to_csv("RESULTS\\"+field.replace("?","").replace("/","_")+'-'+llm_selected+'.csv', index=False)
return df, history, attempt, raw_response_text