Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
•
71f794e
1
Parent(s):
2a72c8b
Update app.py
Browse files
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(
|
195 |
-
|
196 |
-
fn=postprocess,
|
197 |
inputs=[
|
198 |
-
|
|
|
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 |
)
|
|
|
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 |
)
|