Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -61,19 +61,21 @@ with gr.Blocks(css=custom_css) as demo:
|
|
61 |
|
62 |
with gr.Row() as udiff:
|
63 |
with gr.Row():
|
64 |
-
drop = gr.Dropdown(["Object-Church", "Object-Parachute", "Object-Garbage","Style-Van Gogh"
|
65 |
-
"Concept-Nudity", "Concept-Violence", "Illegal Activity"],
|
66 |
label="Unlearning undesirable")
|
67 |
with gr.Column():
|
68 |
# gr.Markdown("Please upload your model id.")
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
72 |
|
73 |
-
start_button = gr.Button("Attack!")
|
74 |
|
75 |
-
with gr.Column():
|
76 |
-
|
77 |
|
78 |
with gr.Column():
|
79 |
gr.Examples(examples=[
|
|
|
61 |
|
62 |
with gr.Row() as udiff:
|
63 |
with gr.Row():
|
64 |
+
drop = gr.Dropdown(["Object-Church", "Object-Parachute", "Object-Garbage","Style-Van Gogh",
|
65 |
+
"Concept-Nudity", "Concept-Violence", "Illegal Activity", "None"],
|
66 |
label="Unlearning undesirable")
|
67 |
with gr.Column():
|
68 |
# gr.Markdown("Please upload your model id.")
|
69 |
+
drop_model = gr.Dropdown(["ESD", "FMN", "AC","UCE", "SLD"],
|
70 |
+
label="Unlearned DM")
|
71 |
+
# diffusion_model_T = gr.Textbox(label='diffusion_model_id')
|
72 |
+
# concept = gr.Textbox(label='concept')
|
73 |
+
# attacker = gr.Textbox(label='attacker')
|
74 |
|
75 |
+
# start_button = gr.Button("Attack!")
|
76 |
|
77 |
+
# with gr.Column():
|
78 |
+
# result = gr.Textbox(label="unsafe prompt")
|
79 |
|
80 |
with gr.Column():
|
81 |
gr.Examples(examples=[
|