Spaces:
Sleeping
Sleeping
Commit
·
30571af
1
Parent(s):
770b4c1
Update app.py
Browse files
app.py
CHANGED
@@ -15,11 +15,11 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
15 |
with gr.Tab("Stable Diffusion"):
|
16 |
prompt_input_txt = gr.Textbox(label="Prompt")
|
17 |
negative_prompt_txt = gr.Textbox(label="Negative Prompt")
|
18 |
-
|
19 |
-
|
20 |
submit_btn = gr.Button(value = "Submit")
|
21 |
-
sd_inputs = [
|
22 |
-
submit_btn.click(fn=infer_sd, inputs=sd_inputs, outputs=[
|
23 |
#examples = [["a woman is making an ok sign in front of a painting", "low quality", "val_1.png", "val_2.png" ]]
|
24 |
#gr.Examples(fn = infer_sd, inputs = ["text", "text", "image", "image"], examples=examples, cache_examples=True)
|
25 |
|
|
|
15 |
with gr.Tab("Stable Diffusion"):
|
16 |
prompt_input_txt = gr.Textbox(label="Prompt")
|
17 |
negative_prompt_txt = gr.Textbox(label="Negative Prompt")
|
18 |
+
input_image = gr.Image(label="Input Image")
|
19 |
+
output_image = gr.Image(label="Output Image")
|
20 |
submit_btn = gr.Button(value = "Submit")
|
21 |
+
sd_inputs = [prompt_input_txt, negative_prompt_txt, input_image]
|
22 |
+
submit_btn.click(fn=infer_sd, inputs=sd_inputs, outputs=[output_image])
|
23 |
#examples = [["a woman is making an ok sign in front of a painting", "low quality", "val_1.png", "val_2.png" ]]
|
24 |
#gr.Examples(fn = infer_sd, inputs = ["text", "text", "image", "image"], examples=examples, cache_examples=True)
|
25 |
|