Update app.py
Browse files
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', '
|
38 |
-
columns_sorted = [Unlearned_Methods','Pre-ASR', 'Post-ASR','FID', '
|
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','
|
80 |
-
show_columns = ['Unlearned_Methods'
|
81 |
-
TYPES = ['str', '
|
82 |
-
files = ['
|
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']))
|