Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def create_app():
|
|
24 |
|
25 |
# Thêm các control vào UI
|
26 |
control_components = [c for c in controls.values()]
|
27 |
-
# for component in control_components:
|
28 |
# component.render()
|
29 |
|
30 |
with gr.Column():
|
@@ -70,11 +70,12 @@ def create_app():
|
|
70 |
outputs=list(controls.values())
|
71 |
)
|
72 |
|
73 |
-
|
74 |
-
|
|
|
75 |
component.change(
|
76 |
process,
|
77 |
-
inputs=
|
78 |
outputs=output_image,
|
79 |
show_progress=False
|
80 |
)
|
|
|
24 |
|
25 |
# Thêm các control vào UI
|
26 |
control_components = [c for c in controls.values()]
|
27 |
+
# for component in control_components: # Removed render() calls
|
28 |
# component.render()
|
29 |
|
30 |
with gr.Column():
|
|
|
70 |
outputs=list(controls.values())
|
71 |
)
|
72 |
|
73 |
+
control_components_list = list(controls.values())
|
74 |
+
input_components_process = [input_image, filter_select] + control_components_list
|
75 |
+
for component in [input_image, filter_select] + control_components_list:
|
76 |
component.change(
|
77 |
process,
|
78 |
+
inputs=input_components_process,
|
79 |
outputs=output_image,
|
80 |
show_progress=False
|
81 |
)
|