Spaces:
Sleeping
Sleeping
fix: 更新复选框change事件处理程序以使用文本输入替代标签
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ class Demo:
|
|
131 |
# 添加复选框的change事件处理程序
|
132 |
model_checkbox.change(
|
133 |
fn=self.update_model_sections,
|
134 |
-
inputs=[model_checkbox.label, model_checkbox, seed_infr, slider_scale_infr],
|
135 |
outputs=[]
|
136 |
)
|
137 |
|
|
|
131 |
# 添加复选框的change事件处理程序
|
132 |
model_checkbox.change(
|
133 |
fn=self.update_model_sections,
|
134 |
+
inputs=[gr.Text(value=f"{model_checkbox.label}"), model_checkbox, seed_infr, slider_scale_infr],
|
135 |
outputs=[]
|
136 |
)
|
137 |
|