Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ methods = list(set(df_results['Unlearned_Methods']))
|
|
81 |
all_columns = ['Unlearned_Methods','Source', 'Diffusion_Models','Pre-ASR', 'Post-ASR','FID']
|
82 |
show_columns = ['Unlearned_Methods','Source', 'Diffusion_Models','Pre-ASR', 'Post-ASR','FID']
|
83 |
TYPES = ['str', 'markdown', 'str', 'number', 'number', 'number']
|
84 |
-
files = ['church','garbage','parachute','tench', 'vangogh', 'nidity', 'violence','
|
85 |
df_results_init = df_results.copy()[show_columns]
|
86 |
|
87 |
def update_table(
|
@@ -227,7 +227,26 @@ with demo:
|
|
227 |
# interactive=True,)
|
228 |
for i in range(len(files)):
|
229 |
if files[i] == "church":
|
230 |
-
name = "### Unlearned
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
gr.Markdown(name)
|
232 |
gr.Markdown("### Unlearned Concepts Parachute")
|
233 |
leaderboard_table = gr.components.Dataframe(
|
|
|
81 |
all_columns = ['Unlearned_Methods','Source', 'Diffusion_Models','Pre-ASR', 'Post-ASR','FID']
|
82 |
show_columns = ['Unlearned_Methods','Source', 'Diffusion_Models','Pre-ASR', 'Post-ASR','FID']
|
83 |
TYPES = ['str', 'markdown', 'str', 'number', 'number', 'number']
|
84 |
+
files = ['church','garbage','parachute','tench', 'vangogh', 'nidity', 'violence','illegal_activity']
|
85 |
df_results_init = df_results.copy()[show_columns]
|
86 |
|
87 |
def update_table(
|
|
|
227 |
# interactive=True,)
|
228 |
for i in range(len(files)):
|
229 |
if files[i] == "church":
|
230 |
+
name = "### Unlearned Objects "+" Church"
|
231 |
+
elif file[i] == 'garbage':
|
232 |
+
name = "### Unlearned Objects "+" Garbage"
|
233 |
+
elif file[i] == 'tench':
|
234 |
+
name = "### Unlearned Objects "+" Tench"
|
235 |
+
elif file[i] == 'parachute':
|
236 |
+
name = "### Unlearned Objects "+" Parachute"
|
237 |
+
elif file[i] == 'vangogh':
|
238 |
+
name = "### Unlearned Stype "+" Van Gogh"
|
239 |
+
elif file[i] == 'nudity':
|
240 |
+
name = "### Unlearned Concepts "+" Nudity"
|
241 |
+
elif file[i] == 'violence':
|
242 |
+
name = "### Unlearned Concepts "+" Violence"
|
243 |
+
elif file[i] == 'ill':
|
244 |
+
name = "### Unlearned Concepts "+" Illgal Activity"
|
245 |
+
|
246 |
+
|
247 |
+
|
248 |
+
|
249 |
+
|
250 |
gr.Markdown(name)
|
251 |
gr.Markdown("### Unlearned Concepts Parachute")
|
252 |
leaderboard_table = gr.components.Dataframe(
|