lukedjestic commited on
Commit
dafd661
1 Parent(s): 1a7b9dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -135,8 +135,8 @@ with gr.Blocks(css=css) as demo:
135
  gr.Markdown(elem_id="resolution", value="*Resolution Maximum: 1MP (1048576 px)*")
136
 
137
  with gr.Column(scale=1):
138
- batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
139
- batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
140
 
141
  cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
142
  seed = gr.Number(label="Seed", value=-1)
@@ -145,6 +145,6 @@ with gr.Blocks(css=css) as demo:
145
  with gr.Column(scale=2):
146
  image_output = gr.Image(value="https://cdn-uploads.huggingface.co/production/uploads/noauth/XWJyh9DhMGXrzyRJk7SfP.png")
147
 
148
- text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed, batch_size, batch_count], outputs=image_output)
149
 
150
  demo.queue(concurrency_count=24, max_size=32, api_open=False).launch(max_threads=128)
 
135
  gr.Markdown(elem_id="resolution", value="*Resolution Maximum: 1MP (1048576 px)*")
136
 
137
  with gr.Column(scale=1):
138
+ batch_size = gr.Slider(label="Batch Size", maximum=25, value=1)
139
+ batch_count = gr.Slider(label="Batch Count", maximum=50, value=25)
140
 
141
  cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
142
  seed = gr.Number(label="Seed", value=-1)
 
145
  with gr.Column(scale=2):
146
  image_output = gr.Image(value="https://cdn-uploads.huggingface.co/production/uploads/noauth/XWJyh9DhMGXrzyRJk7SfP.png")
147
 
148
+ text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed,], outputs=image_output)
149
 
150
  demo.queue(concurrency_count=24, max_size=32, api_open=False).launch(max_threads=128)