Spaces:
Paused
Paused
update description for synth image editing
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ with gr.Blocks() as demo:
|
|
77 |
task_name_radio = gr.Radio(choices = ["cat2dog", "dog2cat",], type="value", visible=False, label="Select a task that you want to accomplish") #, value="cat2dog"),
|
78 |
btn_imageedit = gr.Button(value="Translate the image!",visible=False)
|
79 |
html_tag = gr.HTML(value="""<h3 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
|
80 |
-
🤩Generate images with Stable Diffusion and 🚀Translate on the fly🔥 using Pix2PixZero. Try
|
81 |
Example - type a prompt like 'A small cat sitting on a blue ball', select the task as 'cat->dog' in this case, and press the button.""", visible=False)
|
82 |
prompt_synth = gr.Textbox(visible=False, label="Type in a prompt to generate an Image using SD", placeholder="A small cat sitting on a blue ball")
|
83 |
btn_synth_image = gr.Button(value="Generate & Translate the SD image",visible=False)
|
@@ -97,11 +97,12 @@ with gr.Blocks() as demo:
|
|
97 |
|
98 |
btn_imageedit.click(image_edit,[task_name_radio],[image_out])
|
99 |
btn_imageedit.click(set_visible_False, [], btn_imageedit)
|
|
|
|
|
100 |
btn_imageedit.click(set_visible_true, [], prompt_synth)
|
101 |
btn_imageedit.click(set_visible_true, [], btn_synth_image)
|
102 |
btn_imageedit.click(set_visible_true, [], image_synth)
|
103 |
btn_imageedit.click(set_visible_true, [], image_synth_translated)
|
104 |
-
btn_imageedit.click(set_visible_true, [], html_tag)
|
105 |
btn_synth_image.click(synthetic_image_edit,[prompt_synth, task_name_radio],[image_synth, image_synth_translated])
|
106 |
|
107 |
image_in.clear(set_visible_true, [], btn_inversion)
|
|
|
77 |
task_name_radio = gr.Radio(choices = ["cat2dog", "dog2cat",], type="value", visible=False, label="Select a task that you want to accomplish") #, value="cat2dog"),
|
78 |
btn_imageedit = gr.Button(value="Translate the image!",visible=False)
|
79 |
html_tag = gr.HTML(value="""<h3 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
|
80 |
+
🤩You can also Generate images with Stable Diffusion and 🚀Translate them on the fly🔥 (zero-shot) using Pix2PixZero. Try this below -</h3><br>
|
81 |
Example - type a prompt like 'A small cat sitting on a blue ball', select the task as 'cat->dog' in this case, and press the button.""", visible=False)
|
82 |
prompt_synth = gr.Textbox(visible=False, label="Type in a prompt to generate an Image using SD", placeholder="A small cat sitting on a blue ball")
|
83 |
btn_synth_image = gr.Button(value="Generate & Translate the SD image",visible=False)
|
|
|
97 |
|
98 |
btn_imageedit.click(image_edit,[task_name_radio],[image_out])
|
99 |
btn_imageedit.click(set_visible_False, [], btn_imageedit)
|
100 |
+
|
101 |
+
btn_imageedit.click(set_visible_true, [], html_tag)
|
102 |
btn_imageedit.click(set_visible_true, [], prompt_synth)
|
103 |
btn_imageedit.click(set_visible_true, [], btn_synth_image)
|
104 |
btn_imageedit.click(set_visible_true, [], image_synth)
|
105 |
btn_imageedit.click(set_visible_true, [], image_synth_translated)
|
|
|
106 |
btn_synth_image.click(synthetic_image_edit,[prompt_synth, task_name_radio],[image_synth, image_synth_translated])
|
107 |
|
108 |
image_in.clear(set_visible_true, [], btn_inversion)
|