stahldot commited on
Commit
6ecbfa8
·
verified ·
1 Parent(s): 9260051

Initialize BriefLoop demo space

Browse files
Files changed (3) hide show
  1. README.md +27 -7
  2. app.py +77 -0
  3. requirements.txt +2 -0
README.md CHANGED
@@ -1,13 +1,33 @@
1
  ---
2
- title: Briefloop Demo
3
- emoji: 🌖
4
- colorFrom: yellow
5
- colorTo: purple
6
  sdk: gradio
7
- sdk_version: 6.19.0
8
- python_version: '3.13'
9
  app_file: app.py
10
  pinned: false
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: BriefLoop Demo
3
+ emoji: 🧾
4
+ colorFrom: blue
5
+ colorTo: gray
6
  sdk: gradio
7
+ sdk_version: 5.49.1
 
8
  app_file: app.py
9
  pinned: false
10
+ license: mit
11
  ---
12
 
13
+ # BriefLoop Demo
14
+
15
+ This Space is a small public-facing demonstration surface for BriefLoop.
16
+
17
+ It shows the product shape of a BriefLoop run:
18
+
19
+ - source-backed claims
20
+ - claim ledger
21
+ - quality gates
22
+ - audit trail
23
+ - final reader-facing brief
24
+
25
+ This demo is intentionally bounded. It does not run the full BriefLoop runtime,
26
+ does not prove semantic truth, and does not claim output-quality improvement.
27
+
28
+ Main project:
29
+
30
+ - Website: https://briefloop.ai
31
+ - GitHub: https://github.com/Stahl-G/briefloop
32
+ - PyPI: https://pypi.org/project/briefloop/
33
+
app.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ SAMPLE_LEDGER = """| Claim ID | Claim | Source | Gate Status |
5
+ |---|---|---|---|
6
+ | CL-001 | Example market signal is cited from a registered source entry. | S1 | pass |
7
+ | CL-002 | Example risk statement is framed with explicit limitation. | S2 | warning |
8
+ | CL-003 | Example unsupported claim is blocked before delivery. | none | block |
9
+ """
10
+
11
+ SAMPLE_BRIEF = """# Example BriefLoop Output
12
+
13
+ ## Executive Summary
14
+
15
+ This is a public-safe demo of the BriefLoop workflow shape. It shows how a
16
+ brief can carry a claim ledger, quality gates, and audit-oriented records.
17
+
18
+ ## What This Demo Shows
19
+
20
+ - Claims are recorded before delivery.
21
+ - Warnings and blockers are visible.
22
+ - Reader-facing output is separate from audit/control artifacts.
23
+
24
+ ## Boundary
25
+
26
+ This demo does not prove semantic truth and does not run the full multi-agent
27
+ workflow inside this Space.
28
+ """
29
+
30
+ SAMPLE_GATES = """| Gate | Result | Note |
31
+ |---|---|---|
32
+ | reader-clean | pass | No process residue in reader-facing output. |
33
+ | unsupported-material-claim | block | Unsupported material claim must be repaired or removed. |
34
+ | source-appendix | warning | Source metadata can be improved. |
35
+ """
36
+
37
+
38
+ def show_demo(selection: str):
39
+ if selection == "Claim Ledger":
40
+ return SAMPLE_LEDGER
41
+ if selection == "Quality Gates":
42
+ return SAMPLE_GATES
43
+ return SAMPLE_BRIEF
44
+
45
+
46
+ with gr.Blocks(title="BriefLoop Demo") as demo:
47
+ gr.Markdown(
48
+ """
49
+ # BriefLoop Demo
50
+
51
+ BriefLoop is an open-source workflow for accountable AI-assisted
52
+ business briefings.
53
+
54
+ This Space is a bounded product demo. It shows the shape of BriefLoop
55
+ artifacts, not a live proof of semantic truth or output quality.
56
+ """
57
+ )
58
+ view = gr.Radio(
59
+ ["Final Brief", "Claim Ledger", "Quality Gates"],
60
+ value="Final Brief",
61
+ label="Choose a demo artifact",
62
+ )
63
+ output = gr.Markdown()
64
+ view.change(show_demo, inputs=view, outputs=output)
65
+ demo.load(show_demo, inputs=view, outputs=output)
66
+ gr.Markdown(
67
+ """
68
+ Links: [Website](https://briefloop.ai) ·
69
+ [GitHub](https://github.com/Stahl-G/briefloop) ·
70
+ [PyPI](https://pypi.org/project/briefloop/)
71
+ """
72
+ )
73
+
74
+
75
+ if __name__ == "__main__":
76
+ demo.launch()
77
+
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio>=5.0
2
+