xinchen9 commited on
Commit
fb3682d
1 Parent(s): b4c224e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
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
- diffusion_model_id = gr.Textbox(label='diffusion_model_id')
70
- concept = gr.Textbox(label='concept')
71
- attacker = gr.Textbox(label='attacker')
 
 
72
 
73
- start_button = gr.Button("Attack!")
74
 
75
- with gr.Column():
76
- result = gr.Textbox(label="unsafe prompt")
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=[