Spaces:
Sleeping
Sleeping
[Update]Add three methods
Browse files
app.py
CHANGED
@@ -2,16 +2,26 @@ import gradio as gr
|
|
2 |
|
3 |
with gr.Blocks() as demo:
|
4 |
with gr.Row():
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
8 |
with gr.Row():
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
with gr.Row():
|
16 |
with gr.Column(scale=1, min_width=300):
|
17 |
img1 = gr.Image("images/cheetah.jpg",label="Unlearning")
|
|
|
2 |
|
3 |
with gr.Blocks() as demo:
|
4 |
with gr.Row():
|
5 |
+
shown_columns_1 = gr.CheckboxGroup(
|
6 |
+
choices=["Church","Parachute","Tench", "Garbage Truck"],
|
7 |
+
label="Undersirable Objects",
|
8 |
+
elem_id="column-object",
|
9 |
+
interactive=True,
|
10 |
+
)
|
11 |
with gr.Row():
|
12 |
+
shown_columns_2 = gr.CheckboxGroup(
|
13 |
+
choices=["Van Gogh"],
|
14 |
+
label="Undersirable Styles",
|
15 |
+
elem_id="column-style",
|
16 |
+
interactive=True,
|
17 |
+
)
|
18 |
+
with gr.Row():
|
19 |
+
shown_columns_3 = gr.CheckboxGroup(
|
20 |
+
choices=["Violence","Illegal Activity","Nudity"],
|
21 |
+
label="Undersirable Concepts (Outputs that may be offensive in nature)",
|
22 |
+
elem_id="column-select",
|
23 |
+
interactive=True,
|
24 |
+
)
|
25 |
with gr.Row():
|
26 |
with gr.Column(scale=1, min_width=300):
|
27 |
img1 = gr.Image("images/cheetah.jpg",label="Unlearning")
|