Update UI.py
Browse files
UI.py
CHANGED
@@ -136,13 +136,16 @@ def create_interface(process_function_for_button):
|
|
136 |
product_eq_count_ui
|
137 |
]
|
138 |
outputs_for_button = [image_output, analysis_output]
|
139 |
-
|
|
|
140 |
submit_button.click(
|
141 |
fn=process_function_for_button,
|
142 |
inputs=all_inputs_for_button,
|
143 |
outputs=outputs_for_button,
|
144 |
-
|
145 |
)
|
|
|
|
|
146 |
|
147 |
def set_initial_visibility_on_load_wrapper(b_c_val, s_c_val, p_c_val):
|
148 |
b_c_int = int(float(b_c_val)) if b_c_val is not None else 0
|
|
|
136 |
product_eq_count_ui
|
137 |
]
|
138 |
outputs_for_button = [image_output, analysis_output]
|
139 |
+
# ... (dentro de la funci贸n create_interface)
|
140 |
+
|
141 |
submit_button.click(
|
142 |
fn=process_function_for_button,
|
143 |
inputs=all_inputs_for_button,
|
144 |
outputs=outputs_for_button,
|
145 |
+
api_name="process_data" # 隆DESCOMENTA ESTA L脥NEA!
|
146 |
)
|
147 |
+
|
148 |
+
# ... (resto del c贸digo)
|
149 |
|
150 |
def set_initial_visibility_on_load_wrapper(b_c_val, s_c_val, p_c_val):
|
151 |
b_c_int = int(float(b_c_val)) if b_c_val is not None else 0
|