tirtho149 commited on
Commit
63af2a9
·
verified ·
1 Parent(s): ec092f0

Deploy SyndemicGPS HealthBot — geography-conditioned syndemic reasoning

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -249,7 +249,13 @@ DISCLAIMER = ("Research prototype. Support and hypothesis generation only — no
249
  # --------------------------------------------------------------------------- #
250
 
251
  def render(st: E.State):
252
- """The three surfaces that stay live: status strip, canvas, safety tier."""
 
 
 
 
 
 
253
  ctx = E.resolve(st.a, st.tau, st.cf)
254
  name = E.LOCS[st.a]["short"] + (" · counterfactual" if st.cf else "")
255
  return (panels.status_html(st, ctx, LLM_CLIENT.status()),
 
249
  # --------------------------------------------------------------------------- #
250
 
251
  def render(st: E.State):
252
+ """The two live surfaces: status strip and reasoning canvas.
253
+
254
+ `hydrate` is idempotent and cached per place, so the first paint fetches the
255
+ place's context and every later call is free — without this the opening
256
+ screen reported far fewer factors than the place actually has.
257
+ """
258
+ E.hydrate(st.a)
259
  ctx = E.resolve(st.a, st.tau, st.cf)
260
  name = E.LOCS[st.a]["short"] + (" · counterfactual" if st.cf else "")
261
  return (panels.status_html(st, ctx, LLM_CLIENT.status()),