fffiloni commited on
Commit
a613ef1
·
1 Parent(s): 1069a6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -96,10 +96,14 @@ Use StableDiffusion XL with ControlNet pretrained LoRas
96
  use_custom_model = gr.Checkbox(label="Use a public custom model ?(optional)", value=False, info="To use a private model, you'll prefer to duplicate the space with your own access token.")
97
  model_name = gr.Textbox(label="Model to use", placeholder="username/my_model")
98
  image_in = gr.Image(source="upload", type="filepath")
99
- prompt = gr.Textbox(label="Prompt")
100
- preprocessor = gr.Dropdown(label="Preprocessor", choices=["canny"], value="canny", interactive=False)
101
- guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=7.5, type="float")
102
- controlnet_conditioning_scale = gr.Slider(label="Controlnet conditioning Scale", minimum=0.1, maximum=0.9, step=0.01, value=0.5, type="float")
 
 
 
 
103
  seed = gr.Slider(label="seed", minimum=0, maximum=500000, step=1, value=42)
104
 
105
  submit_btn = gr.Button("Submit")
 
96
  use_custom_model = gr.Checkbox(label="Use a public custom model ?(optional)", value=False, info="To use a private model, you'll prefer to duplicate the space with your own access token.")
97
  model_name = gr.Textbox(label="Model to use", placeholder="username/my_model")
98
  image_in = gr.Image(source="upload", type="filepath")
99
+ with gr.Row():
100
+ with gr.Column():
101
+ prompt = gr.Textbox(label="Prompt")
102
+ guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=7.5, type="float")
103
+ with gr.Colimn():
104
+ preprocessor = gr.Dropdown(label="Preprocessor", choices=["canny"], value="canny", interactive=False)
105
+ controlnet_conditioning_scale = gr.Slider(label="Controlnet conditioning Scale", minimum=0.1, maximum=0.9, step=0.01, value=0.5, type="float")
106
+
107
  seed = gr.Slider(label="seed", minimum=0, maximum=500000, step=1, value=42)
108
 
109
  submit_btn = gr.Button("Submit")