xinchen9 commited on
Commit
867be7f
1 Parent(s): bd78932

[Update]Add three methods

Browse files
Files changed (1) hide show
  1. app.py +19 -9
app.py CHANGED
@@ -2,16 +2,26 @@ import gradio as gr
2
 
3
  with gr.Blocks() as demo:
4
  with gr.Row():
5
- text1 = gr.Textbox(label="t1")
6
- slider2 = gr.Textbox(label="s2")
7
- drop3 = gr.Dropdown(["a", "b", "c"], label="d3")
 
 
 
8
  with gr.Row():
9
- with gr.Column(scale=1, min_width=600):
10
- text1 = gr.Textbox(label="prompt 1")
11
- text2 = gr.Textbox(label="prompt 2")
12
- inbtw = gr.Button("Between")
13
- text4 = gr.Textbox(label="prompt 1")
14
- text5 = gr.Textbox(label="prompt 2")
 
 
 
 
 
 
 
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")