Force-sync public_space_app.py from local private bundle
Browse files- public_space_app.py +30 -0
public_space_app.py
CHANGED
|
@@ -210,6 +210,35 @@ def _how_to_use_markdown() -> str:
|
|
| 210 |
)
|
| 211 |
|
| 212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
def _plain_status_label(value: str) -> str:
|
| 214 |
normalized = str(value or "").strip()
|
| 215 |
mapping = {
|
|
@@ -937,6 +966,7 @@ def build_app(copy_path: str | Path):
|
|
| 937 |
gr.Markdown(copy_payload.get("welcome_markdown", copy_payload.get("landing_markdown", "")))
|
| 938 |
with gr.Tab("Start Here"):
|
| 939 |
gr.Markdown(_about_release_markdown(manifest, data["recipient_link_quality"], data["source_quality"]))
|
|
|
|
| 940 |
gr.Markdown(_data_used_markdown(manifest))
|
| 941 |
gr.Markdown(_how_to_use_markdown())
|
| 942 |
with gr.Tab("Overview"):
|
|
|
|
| 210 |
)
|
| 211 |
|
| 212 |
|
| 213 |
+
def _fictional_example_markdown() -> str:
|
| 214 |
+
return "\n".join(
|
| 215 |
+
[
|
| 216 |
+
"## Fictional example",
|
| 217 |
+
"",
|
| 218 |
+
"Imagine a **fictional** House member named `Alex Rivera`.",
|
| 219 |
+
"",
|
| 220 |
+
"A reporter notices that Alex Rivera disclosed trades in several solar and grid-equipment companies.",
|
| 221 |
+
"The reporter wonders whether public legislative activity in the same time window also clusters around energy issues.",
|
| 222 |
+
"",
|
| 223 |
+
"This tool could help the reporter do four things quickly:",
|
| 224 |
+
"",
|
| 225 |
+
"1. Search `Alex Rivera` in **Overview** and see whether `energy` rises to the top of the ranked list.",
|
| 226 |
+
"2. Open one energy relationship in **Relationship to explain** and see the plain-English reasons it appears.",
|
| 227 |
+
"3. Check the coarse evidence window to see whether disclosure records and legislative records show up in the same published window.",
|
| 228 |
+
"4. Open the source URLs and SHA-backed artifacts to verify the underlying records directly.",
|
| 229 |
+
"",
|
| 230 |
+
"What this example would **not** mean:",
|
| 231 |
+
"",
|
| 232 |
+
"- It would not prove corruption.",
|
| 233 |
+
"- It would not prove intent.",
|
| 234 |
+
"- It would not prove causality.",
|
| 235 |
+
"- It would mean there is enough public-record overlap to justify closer reporting or investigation.",
|
| 236 |
+
"",
|
| 237 |
+
"In other words: the tool helps someone move from a vague hunch to a concrete set of records worth checking.",
|
| 238 |
+
]
|
| 239 |
+
)
|
| 240 |
+
|
| 241 |
+
|
| 242 |
def _plain_status_label(value: str) -> str:
|
| 243 |
normalized = str(value or "").strip()
|
| 244 |
mapping = {
|
|
|
|
| 966 |
gr.Markdown(copy_payload.get("welcome_markdown", copy_payload.get("landing_markdown", "")))
|
| 967 |
with gr.Tab("Start Here"):
|
| 968 |
gr.Markdown(_about_release_markdown(manifest, data["recipient_link_quality"], data["source_quality"]))
|
| 969 |
+
gr.Markdown(_fictional_example_markdown())
|
| 970 |
gr.Markdown(_data_used_markdown(manifest))
|
| 971 |
gr.Markdown(_how_to_use_markdown())
|
| 972 |
with gr.Tab("Overview"):
|