Spaces:
Runtime error
Runtime error
Commit
·
300f50b
1
Parent(s):
fee6732
Update app.py
Browse files
app.py
CHANGED
@@ -189,7 +189,8 @@ with gr.Blocks() as app:
|
|
189 |
# The rest of your code for setting up the app
|
190 |
gallery.select(update_selection, outputs=[prompt, selected_info, selected_state])
|
191 |
prompt.submit(fn=run_lora, inputs=[prompt, selected_state], outputs=[result, post_processed_result])
|
192 |
-
post_process_button.click(fn=
|
|
|
193 |
|
194 |
app.queue(max_size=20, concurrency_count=5)
|
195 |
app.launch()
|
|
|
189 |
# The rest of your code for setting up the app
|
190 |
gallery.select(update_selection, outputs=[prompt, selected_info, selected_state])
|
191 |
prompt.submit(fn=run_lora, inputs=[prompt, selected_state], outputs=[result, post_processed_result])
|
192 |
+
post_process_button.click(fn=postprocess, inputs=[post_processed_result, enabled, downscale, need_rescale, enable_color_limit, number_of_colors, quantization_method, dither_method, use_k_means, is_grayscale, number_of_shades, quantization_method_grayscale, dither_method_grayscale, use_k_means_grayscale, is_black_and_white, is_inversed_black_and_white, black_and_white_threshold, use_color_palette, palette_image, palette_colors, dither_method_palette], outputs=[post_processed_result])
|
193 |
+
|
194 |
|
195 |
app.queue(max_size=20, concurrency_count=5)
|
196 |
app.launch()
|