multimodalart HF staff commited on
Commit
0a79867
1 Parent(s): 4430cec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -107,11 +107,11 @@ with gr.Blocks() as app:
107
 
108
  with gr.Row():
109
  with gr.Column():
110
- control_image = gr.Image(label="Input Illusion", type="pil")
111
  controlnet_conditioning_scale = gr.Slider(minimum=0.0, maximum=5.0, step=0.01, value=0.8, label="Illusion strength", info="ControlNet conditioning scale")
112
  gr.Examples(examples=["checkers.png", "pattern.png", "spiral.jpeg"], inputs=control_image)
113
- prompt = gr.Textbox(label="Prompt")
114
- negative_prompt = gr.Textbox(label="Negative Prompt", value="low quality")
115
  with gr.Accordion(label="Advanced Options", open=False):
116
  #strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.9, label="Strength")
117
  guidance_scale = gr.Slider(minimum=0.0, maximum=50.0, step=0.25, value=7.5, label="Guidance Scale")
@@ -119,7 +119,7 @@ with gr.Blocks() as app:
119
  seed = gr.Slider(minimum=-1, maximum=9999999999, step=1, value=2313123, label="Seed", randomize=True)
120
  run_btn = gr.Button("Run")
121
  with gr.Column():
122
- result_image = gr.Image(label="Illusion Diffusion Output")
123
  with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
124
  community_icon = gr.HTML(community_icon_html)
125
  loading_icon = gr.HTML(loading_icon_html)
 
107
 
108
  with gr.Row():
109
  with gr.Column():
110
+ control_image = gr.Image(label="Input Illusion", type="pil", elem_id="control_image")
111
  controlnet_conditioning_scale = gr.Slider(minimum=0.0, maximum=5.0, step=0.01, value=0.8, label="Illusion strength", info="ControlNet conditioning scale")
112
  gr.Examples(examples=["checkers.png", "pattern.png", "spiral.jpeg"], inputs=control_image)
113
+ prompt = gr.Textbox(label="Prompt", elem_id="prompt")
114
+ negative_prompt = gr.Textbox(label="Negative Prompt", value="low quality", elem_id="negative_prompt")
115
  with gr.Accordion(label="Advanced Options", open=False):
116
  #strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.9, label="Strength")
117
  guidance_scale = gr.Slider(minimum=0.0, maximum=50.0, step=0.25, value=7.5, label="Guidance Scale")
 
119
  seed = gr.Slider(minimum=-1, maximum=9999999999, step=1, value=2313123, label="Seed", randomize=True)
120
  run_btn = gr.Button("Run")
121
  with gr.Column():
122
+ result_image = gr.Image(label="Illusion Diffusion Output", elem_id="output")
123
  with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
124
  community_icon = gr.HTML(community_icon_html)
125
  loading_icon = gr.HTML(loading_icon_html)