Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -301,8 +301,16 @@ with gr.Blocks(title="Jerry • HW Intake (Echo)") as demo:
|
|
| 301 |
|
| 302 |
# Auto-fill inputs whenever we parse new params
|
| 303 |
def prefill_inputs(p): return fill_from_state(p)
|
| 304 |
-
params_from_docx = gr.EventListener(last_params, triggers=["change"])
|
| 305 |
-
params_from_img = gr.EventListener(last_params, triggers=["change"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
|
| 307 |
gr.Markdown("— Echo mode finished. When this looks good, we’ll plug in the SL solver + coaching.")
|
| 308 |
|
|
|
|
| 301 |
|
| 302 |
# Auto-fill inputs whenever we parse new params
|
| 303 |
def prefill_inputs(p): return fill_from_state(p)
|
| 304 |
+
# params_from_docx = gr.EventListener(last_params, triggers=["change"])
|
| 305 |
+
# params_from_img = gr.EventListener(last_params, triggers=["change"])
|
| 306 |
+
|
| 307 |
+
last_params.change(
|
| 308 |
+
fn=lambda p: fill_from_state(p),
|
| 309 |
+
inputs=last_params,
|
| 310 |
+
outputs=[in_cost, in_salv, in_life, in_year]
|
| 311 |
+
)
|
| 312 |
+
|
| 313 |
+
|
| 314 |
|
| 315 |
gr.Markdown("— Echo mode finished. When this looks good, we’ll plug in the SL solver + coaching.")
|
| 316 |
|