Deploy SyndemicGPS HealthBot — geography-conditioned syndemic reasoning
Browse filesFiles changed (2)
- app.py+5-1
- syndemic/ops.py+1-1
327 unmodified lines328329330331332333334327 unmodified linesrows[6].update(state="done", r=st.tier().upper())header = f"**{result.title}**\n\n" if result.title else ""tail = "\n\n".join(x for x in [result.body, ops._md_sources(result.passages),panels.trace_md(result.trace)] if x)if result.passages:rows[2]["r"] = (rows[2]["r"] or "") + f" + {len(result.passages)} passages"327 unmodified lines328329330331332333334335336337338327 unmodified linesrows[6].update(state="done", r=st.tier().upper())header = f"**{result.title}**\n\n" if result.title else ""# The prose is the answer. The structured listing is the working — kept for# inspection, folded away so it stops competing with what the person asked.working = (f"<details><summary>Show the working</summary>\n\n{result.body}\n</details>"if result.body else "")tail = "\n\n".join(x for x in [working, ops._md_sources(result.passages),panels.trace_md(result.trace)] if x)if result.passages:rows[2]["r"] = (rows[2]["r"] or "") + f" + {len(result.passages)} passages"
336 unmodified lines337338339340341342343336 unmodified lineslines = [f"**{name}**"]for i, it in enumerate(items[:E.TOP]):uniq = " · *only here*" if other_ids is not None and it["id"] not in other_ids else ""ctxline = it["geo_why"][0] if it["geo_why"] else "no gated contextual factor applied"lines.append(f"{i+1}. **{it['lab']}** `{it['tier']}`{uniq} \n <sub>{ctxline}</sub>")return "\n".join(lines)336 unmodified lines337338339340341342343336 unmodified lineslines = [f"**{name}**"]for i, it in enumerate(items[:E.TOP]):uniq = " · *only here*" if other_ids is not None and it["id"] not in other_ids else ""ctxline = it["geo_why"][0] if it["geo_why"] else "nothing local changed this one"lines.append(f"{i+1}. **{it['lab']}** `{it['tier']}`{uniq} \n <sub>{ctxline}</sub>")return "\n".join(lines)
app.py+5-1
syndemic/ops.py+1-1