save results

This commit is contained in:
Mayank Aamseek
2024-03-07 14:00:37 +05:30
parent 3544ac8209
commit 6f856e1f96
3 changed files with 6 additions and 14 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ if st.button("Test Configuration"):
accuracy = 'NA'
history.loc[len(history.index)] = [field, str(contract_count), None, datetime.now().strftime("%Y-%m-%d %H:%M:%S"), accuracy, attempt]
# df.to_csv(field.replace("?","").replace("/","_")+'-'+llm_selected+'.csv', index=False)
df.to_csv("RESULTS\\"+field.replace("?","").replace("/","_")+'-'+llm_selected+'.csv', index=False)
history.to_csv('history.csv', index=False)
# df_copy = df.set_index(df.columns[0]).copy()