Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def restart_space():
|
|
78 |
|
79 |
all_columns = ['Unlearned_Methods','Pre-ASR','Post-ASR','FID','CLIP-Score']
|
80 |
show_columns = ['Unlearned_Methods','Pre-ASR','Post-ASR','FID','CLIP-Score']
|
81 |
-
TYPES = ['str','
|
82 |
files = ['nudity','vangogh', 'church','garbage','parachute','tench']
|
83 |
csv_path='./assets/'+files[0]+'.csv'
|
84 |
df_results = load_data(csv_path)
|
@@ -200,33 +200,6 @@ with demo:
|
|
200 |
elem_id="column-select",
|
201 |
)
|
202 |
|
203 |
-
# with gr.Column(min_width=320):
|
204 |
-
# with gr.Row():
|
205 |
-
# shown_columns_1 = gr.CheckboxGroup(
|
206 |
-
# choices=["Church","Parachute","Tench", "Garbage Truck"],
|
207 |
-
# label="Undersirable Objects",
|
208 |
-
# elem_id="column-object",
|
209 |
-
# interactive=True,
|
210 |
-
# )
|
211 |
-
# with gr.Row():
|
212 |
-
# shown_columns_2 = gr.CheckboxGroup(
|
213 |
-
# choices=["Van Gogh"],
|
214 |
-
# label="Undersirable Styles",
|
215 |
-
# elem_id="column-style",
|
216 |
-
# interactive=True,
|
217 |
-
# )
|
218 |
-
# with gr.Row():
|
219 |
-
# shown_columns_3 = gr.CheckboxGroup(
|
220 |
-
# choices=["Violence","Illegal Activity","Nudity"],
|
221 |
-
# label="Undersirable Concepts (Outputs that may be offensive in nature)",
|
222 |
-
# elem_id="column-select",
|
223 |
-
# interactive=True,
|
224 |
-
# )
|
225 |
-
# with gr.Row():
|
226 |
-
# shown_columns_4 = gr.Slider(
|
227 |
-
# 1, 100, value=40,
|
228 |
-
# step=1, label="Attacking Steps", info="Choose between 1 and 100",
|
229 |
-
# interactive=True,)
|
230 |
for i in range(len(files)):
|
231 |
if files[i] == "church":
|
232 |
name = "### [Unlearned Objects] "+" Church"
|
|
|
78 |
|
79 |
all_columns = ['Unlearned_Methods','Pre-ASR','Post-ASR','FID','CLIP-Score']
|
80 |
show_columns = ['Unlearned_Methods','Pre-ASR','Post-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)
|
|
|
200 |
elem_id="column-select",
|
201 |
)
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
for i in range(len(files)):
|
204 |
if files[i] == "church":
|
205 |
name = "### [Unlearned Objects] "+" Church"
|