hako-mikan / sd-webui-cd-tuner

Color/Detail control for Stable Diffusion web-ui
GNU Affero General Public License v3.0
191 stars 8 forks source link

Button click listener without input #22

Closed woct0rdho closed 3 months ago

woct0rdho commented 5 months ago

Thanks for your great work! However, when SD WebUI launches there are annoying warnings like

UserWarning: Expected 1 arguments for function <function Script.ui.<locals>.<lambda> at 0x000001A18BB3CE50>, received 0.

I think in those lines we should write fn=lambda: rather than fn=lambda x:, because there is no input

I'm using SD WebUI 1.7.0 and gradio 3.41.2

hako-mikan commented 3 months ago

Fixed. Thanks @D0n-A !