diff --git a/modules/ui_settings.py b/modules/ui_settings.py index a66789f32f5..dc79efdd6ba 100644 --- a/modules/ui_settings.py +++ b/modules/ui_settings.py @@ -335,7 +335,7 @@ def add_functionality(self, demo): for method in methods: method( - fn=lambda value, k=k: self.run_settings_single(value, key=k), + fn=lambda value, key=k: self.run_settings_single(value, key=key), inputs=[component], outputs=[component, self.text_settings], show_progress=info.refresh is not None,