hysts HF staff commited on
Commit
ee856d0
·
1 Parent(s): 8a96fd2
Files changed (1) hide show
  1. app_base.py +3 -2
app_base.py CHANGED
@@ -160,11 +160,12 @@ def create_demo(model: Model) -> gr.Blocks:
160
  with gr.Group():
161
  image = gr.Image(label="Input image", type="pil", height=600)
162
  prompt = gr.Textbox(label="Prompt")
163
- adapter_name = gr.Dropdown(label="Adapter name", choices=ADAPTER_NAMES, value=ADAPTER_NAMES[0])
 
 
164
  run_button = gr.Button("Run")
165
  with gr.Accordion("Advanced options", open=False):
166
  apply_preprocess = gr.Checkbox(label="Apply preprocess", value=True)
167
- style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
168
  negative_prompt = gr.Textbox(label="Negative prompt")
169
  num_inference_steps = gr.Slider(
170
  label="Number of steps",
 
160
  with gr.Group():
161
  image = gr.Image(label="Input image", type="pil", height=600)
162
  prompt = gr.Textbox(label="Prompt")
163
+ with gr.Row():
164
+ adapter_name = gr.Dropdown(label="Adapter name", choices=ADAPTER_NAMES, value=ADAPTER_NAMES[0])
165
+ style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
166
  run_button = gr.Button("Run")
167
  with gr.Accordion("Advanced options", open=False):
168
  apply_preprocess = gr.Checkbox(label="Apply preprocess", value=True)
 
169
  negative_prompt = gr.Textbox(label="Negative prompt")
170
  num_inference_steps = gr.Slider(
171
  label="Number of steps",