SD_Offense / app.py
xinchen9's picture
[Update]add label of image
bd78932 verified
raw
history blame
773 Bytes
import gradio as gr
with gr.Blocks() as demo:
with gr.Row():
text1 = gr.Textbox(label="t1")
slider2 = gr.Textbox(label="s2")
drop3 = gr.Dropdown(["a", "b", "c"], label="d3")
with gr.Row():
with gr.Column(scale=1, min_width=600):
text1 = gr.Textbox(label="prompt 1")
text2 = gr.Textbox(label="prompt 2")
inbtw = gr.Button("Between")
text4 = gr.Textbox(label="prompt 1")
text5 = gr.Textbox(label="prompt 2")
with gr.Row():
with gr.Column(scale=1, min_width=300):
img1 = gr.Image("images/cheetah.jpg",label="Unlearning")
with gr.Column(scale=1, min_width=300):
img2 = gr.Image("images/cheetah.jpg",label="Attacking")
demo.launch()