xinchen9 commited on
Commit
701f8f0
1 Parent(s): e1c712c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -34,8 +34,8 @@ from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, QUEUE_REPO, REP
34
  # import copy
35
 
36
  def load_data(data_path):
37
- columns = ['Unlearned_Methods','Pre-ASR', 'Post-ASR','FID', 'Clip-Score']
38
- columns_sorted = [Unlearned_Methods','Pre-ASR', 'Post-ASR','FID', 'Clip-Score']
39
 
40
  df = pd.read_csv(data_path).dropna()
41
  df['Post-ASR'] = df['Post-ASR'].round(0)
@@ -76,10 +76,10 @@ def restart_space():
76
  # pending_eval_queue_df,
77
  # ) = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
78
 
79
- all_columns = ['Unlearned_Methods','Source', 'Diffusion_Models','Pre-ASR','Pre-ASR','Post-FID']
80
- show_columns = ['Unlearned_Methods','Source', 'Diffusion_Models','Pre-ASR','Pre-ASR','Post-FID']
81
- TYPES = ['str', 'markdown', 'str', 'number', 'number', 'number', 'number']
82
- files = ['vangogh', 'nudity','church','garbage','parachute','tench', 'vangogh']
83
  csv_path='./assets/'+files[0]+'.csv'
84
  df_results = load_data(csv_path)
85
  methods = list(set(df_results['Unlearned_Methods']))
 
34
  # import copy
35
 
36
  def load_data(data_path):
37
+ columns = ['Unlearned_Methods','Pre-ASR', 'Post-ASR','FID', 'CLIP-Score']
38
+ columns_sorted = [Unlearned_Methods','Pre-ASR', 'Post-ASR','FID', 'CLIP-Score']
39
 
40
  df = pd.read_csv(data_path).dropna()
41
  df['Post-ASR'] = df['Post-ASR'].round(0)
 
76
  # pending_eval_queue_df,
77
  # ) = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
78
 
79
+ all_columns = ['Unlearned_Methods','Pre-ASR','Pre-ASR','FID','CLIP-Score']
80
+ show_columns = ['Unlearned_Methods',,'Pre-ASR','Pre-ASR','FID','CLIP-Score']
81
+ TYPES = ['str', 'number', 'number', 'number', 'number']
82
+ files = ['nudity','vangogh', 'church','garbage','parachute','tench']
83
  csv_path='./assets/'+files[0]+'.csv'
84
  df_results = load_data(csv_path)
85
  methods = list(set(df_results['Unlearned_Methods']))