JVice commited on
Commit
5850379
·
verified ·
1 Parent(s): 2947944

Update model_comparison.py

Browse files
Files changed (1) hide show
  1. model_comparison.py +2 -2
model_comparison.py CHANGED
@@ -104,7 +104,7 @@ def initialise_page(tab):
104
  communityGEN = st.form_submit_button("TBYB Community Evaluations")
105
  if communityGEN:
106
  databaseDF = None
107
- snapshot_download(repo_id="JVice/try-before-you-bias-data",local_dir = './data')
108
  databaseDF = add_user_evalID_columns_to_df(databaseDF, GEN_EVAL_DATABASE_PATH)[["Eval. ID", "Model", "Model Type", "Resolution", "No. Samples", "Inference Steps",
109
  "Objects", "Actions", "Occupations", "Dist. Bias", "Hallucination", "Gen. Miss Rate",
110
  "Run Time", "Date", "Time"]]
@@ -114,7 +114,7 @@ def initialise_page(tab):
114
  communityTASK = st.form_submit_button("TBYB Community Evaluations")
115
  if communityTASK:
116
  databaseDF = None
117
- snapshot_download(repo_id="JVice/try-before-you-bias-data",local_dir = './data')
118
  databaseDF = add_user_evalID_columns_to_df(databaseDF, TASK_EVAL_DATABASE_PATH)[["Eval. ID", "Model", "Model Type", "Resolution", "No. Samples", "Inference Steps",
119
  "Target", "Dist. Bias", "Hallucination", "Gen. Miss Rate", "Run Time", "Date", "Time"]]
120
  if databaseDF is not None:
 
104
  communityGEN = st.form_submit_button("TBYB Community Evaluations")
105
  if communityGEN:
106
  databaseDF = None
107
+ snapshot_download(repo_id="JVice/try-before-you-bias-data",repo_type='dataset',local_dir = './data')
108
  databaseDF = add_user_evalID_columns_to_df(databaseDF, GEN_EVAL_DATABASE_PATH)[["Eval. ID", "Model", "Model Type", "Resolution", "No. Samples", "Inference Steps",
109
  "Objects", "Actions", "Occupations", "Dist. Bias", "Hallucination", "Gen. Miss Rate",
110
  "Run Time", "Date", "Time"]]
 
114
  communityTASK = st.form_submit_button("TBYB Community Evaluations")
115
  if communityTASK:
116
  databaseDF = None
117
+ snapshot_download(repo_id="JVice/try-before-you-bias-data",repo_type='dataset',local_dir = './data')
118
  databaseDF = add_user_evalID_columns_to_df(databaseDF, TASK_EVAL_DATABASE_PATH)[["Eval. ID", "Model", "Model Type", "Resolution", "No. Samples", "Inference Steps",
119
  "Target", "Dist. Bias", "Hallucination", "Gen. Miss Rate", "Run Time", "Date", "Time"]]
120
  if databaseDF is not None: