xinchen9 commited on
Commit
8ec1b04
1 Parent(s): 4488c87

[Update]Add three types unlearning

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -148,27 +148,27 @@ with demo:
148
  elem_id="search-bar",
149
  )
150
  # with gr.Column(min_width=320):
151
- with gr.Row():
152
- shown_columns_1 = gr.CheckboxGroup(
153
- choices=["Violence","Illegal Activity","Nudity"],
154
- label="Undersirable concepts (Outputs that may be offensive in nature)",
155
- elem_id="column-object",
156
- interactive=True,
157
- )
158
- with gr.Row():
159
- shown_columns_1 = gr.CheckboxGroup(
160
- choices=["Violence","Illegal Activity","Nudity"],
161
- label="Undersirable concepts (Outputs that may be offensive in nature)",
162
- elem_id="column-stype",
163
- interactive=True,
164
- )
165
- with gr.Row():
166
- shown_columns_1 = gr.CheckboxGroup(
167
- choices=["Violence","Illegal Activity","Nudity"],
168
- label="Undersirable concepts (Outputs that may be offensive in nature)",
169
- elem_id="column-select",
170
- interactive=True,
171
- )
172
 
173
  # with gr.Row():
174
  # shown_columns = gr.CheckboxGroup(
 
148
  elem_id="search-bar",
149
  )
150
  # with gr.Column(min_width=320):
151
+ with gr.Row():
152
+ shown_columns_1 = gr.CheckboxGroup(
153
+ choices=["Church","Parachute","Tench", "Garbage Truck"],
154
+ label="Undersirable Objects",
155
+ elem_id="column-object",
156
+ interactive=True,
157
+ )
158
+ with gr.Row():
159
+ shown_columns_2 = gr.CheckboxGroup(
160
+ choices=["Van Gogh"],
161
+ label="Undersirable Styles",
162
+ elem_id="column-style",
163
+ interactive=True,
164
+ )
165
+ with gr.Row():
166
+ shown_columns_3 = gr.CheckboxGroup(
167
+ choices=["Violence","Illegal Activity","Nudity"],
168
+ label="Undersirable Concepts (Outputs that may be offensive in nature)",
169
+ elem_id="column-select",
170
+ interactive=True,
171
+ )
172
 
173
  # with gr.Row():
174
  # shown_columns = gr.CheckboxGroup(