multimodalart HF staff commited on
Commit
38dcde2
1 Parent(s): c4cae52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -66,7 +66,6 @@ with gr.Blocks(css=css) as demo:
66
  label="Prompt",
67
  max_lines=1,
68
  placeholder="Enter your prompt",
69
- container=False,
70
  )
71
  negative_prompt = gr.Text(
72
  label="Negative prompt",
@@ -75,7 +74,7 @@ with gr.Blocks(css=css) as demo:
75
  )
76
  with gr.Row():
77
  guidance_scale = gr.Slider(
78
- label="Guidance scale",
79
  minimum=0.0,
80
  maximum=10.0,
81
  step=0.1,
@@ -141,7 +140,7 @@ with gr.Blocks(css=css) as demo:
141
  inputs = [prompt]
142
  )
143
  gr.on(
144
- triggers=[run_button.click, prompt.submit],
145
  fn = infer,
146
  inputs = [prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, true_guidance, num_inference_steps],
147
  outputs = [result, seed]
 
66
  label="Prompt",
67
  max_lines=1,
68
  placeholder="Enter your prompt",
 
69
  )
70
  negative_prompt = gr.Text(
71
  label="Negative prompt",
 
74
  )
75
  with gr.Row():
76
  guidance_scale = gr.Slider(
77
+ label="Distilled Guidance scale",
78
  minimum=0.0,
79
  maximum=10.0,
80
  step=0.1,
 
140
  inputs = [prompt]
141
  )
142
  gr.on(
143
+ triggers=[run_button.click, prompt.submit, negative_prompt.submit],
144
  fn = infer,
145
  inputs = [prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, true_guidance, num_inference_steps],
146
  outputs = [result, seed]