exx8 commited on
Commit
c4f7e78
1 Parent(s): 3be837f

Capitals + credit

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -77,8 +77,8 @@ with gr.Blocks() as demo:
77
  with gr.Row():
78
  with gr.Column():
79
  with gr.Row():
80
- input_image = gr.Image(label="input image", type="pil")
81
- change_map = gr.Image(label="change map", type="pil")
82
  gs = gr.Slider(0, 28, value=7.5, label="Guidance Scale")
83
  prompt = gr.Textbox(label="Prompt")
84
  neg_prompt = gr.Textbox(label="Negative Prompt")
@@ -86,10 +86,11 @@ with gr.Blocks() as demo:
86
  clr_btn=gr.ClearButton(components=[input_image, change_map, gs, prompt, neg_prompt])
87
  run_btn = gr.Button("Run",variant="primary")
88
 
89
- output = gr.Image(label="output image")
90
  gr.Examples(examples=[example1, example2],inputs=[input_image, change_map, gs, prompt, neg_prompt])
 
91
  run_btn.click(inference, inputs=[input_image, change_map, gs, prompt, neg_prompt], outputs=output)
92
  clr_btn.add(output)
93
  if __name__ == "__main__":
94
- demo.launch(share=True)
95
 
 
77
  with gr.Row():
78
  with gr.Column():
79
  with gr.Row():
80
+ input_image = gr.Image(label="Input Image", type="pil")
81
+ change_map = gr.Image(label="Change Map", type="pil")
82
  gs = gr.Slider(0, 28, value=7.5, label="Guidance Scale")
83
  prompt = gr.Textbox(label="Prompt")
84
  neg_prompt = gr.Textbox(label="Negative Prompt")
 
86
  clr_btn=gr.ClearButton(components=[input_image, change_map, gs, prompt, neg_prompt])
87
  run_btn = gr.Button("Run",variant="primary")
88
 
89
+ output = gr.Image(label="Output Image")
90
  gr.Examples(examples=[example1, example2],inputs=[input_image, change_map, gs, prompt, neg_prompt])
91
+ gr.Markdown("Differential Diffusion with SDXL; Thanks to the community for the prompts in the examples.")
92
  run_btn.click(inference, inputs=[input_image, change_map, gs, prompt, neg_prompt], outputs=output)
93
  clr_btn.add(output)
94
  if __name__ == "__main__":
95
+ demo.launch()
96