artificialguybr commited on
Commit
71f794e
1 Parent(s): 2a72c8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -191,31 +191,31 @@ with gr.Blocks() as app:
191
  # The rest of your code for setting up the app
192
  gallery.select(update_selection, outputs=[prompt, selected_info, selected_state])
193
  prompt.submit(fn=run_lora, inputs=[prompt, selected_state], outputs=[result])
194
- button.click(fn=run_lora, inputs=[prompt, selected_state], outputs=[result])
195
- post_process_button.click(
196
- fn=postprocess,
197
  inputs=[
198
- result,
 
199
  enabled,
200
  downscale,
201
  need_rescale,
202
  enable_color_limit,
203
- palette_size_color, # Updated this
204
- quantization_methods_color, # Updated this
205
- dither_methods_color, # Updated this
206
- k_means_color, # Updated this
207
- enable_grayscale, # Updated this
208
- palette_size_gray, # Updated this
209
- quantization_methods_gray, # Updated this
210
- dither_methods_gray, # Updated this
211
- k_means_gray, # Updated this
212
- enable_black_and_white, # Updated this
213
- inverse_black_and_white, # Updated this
214
- threshold_black_and_white, # Updated this
215
- enable_custom_palette, # Updated this
216
- palette_image, # Updated this
217
- palette_size_custom, # Updated this
218
- dither_methods_custom # Updated this
219
  ],
220
  outputs=[result]
221
  )
 
191
  # The rest of your code for setting up the app
192
  gallery.select(update_selection, outputs=[prompt, selected_info, selected_state])
193
  prompt.submit(fn=run_lora, inputs=[prompt, selected_state], outputs=[result])
194
+ button.click(
195
+ fn=run_and_postprocess,
 
196
  inputs=[
197
+ prompt,
198
+ selected_state,
199
  enabled,
200
  downscale,
201
  need_rescale,
202
  enable_color_limit,
203
+ palette_size_color,
204
+ quantization_methods_color,
205
+ dither_methods_color,
206
+ k_means_color,
207
+ enable_grayscale,
208
+ palette_size_gray,
209
+ quantization_methods_gray,
210
+ dither_methods_gray,
211
+ k_means_gray,
212
+ enable_black_and_white,
213
+ inverse_black_and_white,
214
+ threshold_black_and_white,
215
+ enable_custom_palette,
216
+ palette_image,
217
+ palette_size_custom,
218
+ dither_methods_custom
219
  ],
220
  outputs=[result]
221
  )