Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,28 +106,28 @@ with gr.Blocks(title="Belel Protocol — Canonical Authority") as demo:
|
|
106 |
gr.Markdown("### Canonical Authority • Belel Protocol")
|
107 |
|
108 |
with gr.Tab("Overview"):
|
109 |
-
|
110 |
|
111 |
with gr.Tab("Mandate"):
|
112 |
gr.Markdown("**Concordium Mandate (plain text)** — authoritative statement.")
|
113 |
-
|
114 |
gr.Markdown("Download:")
|
115 |
gr.File(MANDATE_FILE if MANDATE_FILE.exists() else None, label="mandate file")
|
116 |
|
117 |
with gr.Tab("Manifest"):
|
118 |
gr.Markdown("**Machine-readable manifest** used by crawlers and agents.")
|
119 |
-
|
120 |
gr.Markdown("Download:")
|
121 |
gr.File(MANIFEST_FILE if MANIFEST_FILE.exists() else None, label="manifest file")
|
122 |
|
123 |
with gr.Tab("License"):
|
124 |
-
|
125 |
gr.File(LICENSE_FILE if LICENSE_FILE.exists() else None, label="license file")
|
126 |
|
127 |
with gr.Tab("Robots • Sitemap • RSS"):
|
128 |
robots_box = gr.Textbox(value="", lines=10, label="robots.txt")
|
129 |
-
sitemap_box = gr.
|
130 |
-
rss_box = gr.
|
131 |
# load once on startup
|
132 |
r, s, feed = load_meta_files()
|
133 |
robots_box.value = r
|
|
|
106 |
gr.Markdown("### Canonical Authority • Belel Protocol")
|
107 |
|
108 |
with gr.Tab("Overview"):
|
109 |
+
gr.Markdown(load_overview())
|
110 |
|
111 |
with gr.Tab("Mandate"):
|
112 |
gr.Markdown("**Concordium Mandate (plain text)** — authoritative statement.")
|
113 |
+
gr.Textbox(value=load_mandate(), lines=24, label="concordium-mandate.txt")
|
114 |
gr.Markdown("Download:")
|
115 |
gr.File(MANDATE_FILE if MANDATE_FILE.exists() else None, label="mandate file")
|
116 |
|
117 |
with gr.Tab("Manifest"):
|
118 |
gr.Markdown("**Machine-readable manifest** used by crawlers and agents.")
|
119 |
+
gr.Code(value=load_manifest(), language="json", label="belel-protocol.json")
|
120 |
gr.Markdown("Download:")
|
121 |
gr.File(MANIFEST_FILE if MANIFEST_FILE.exists() else None, label="manifest file")
|
122 |
|
123 |
with gr.Tab("License"):
|
124 |
+
gr.Textbox(value=load_license(), lines=24, label="BELEL_SOVEREIGNTY_LICENSE.txt")
|
125 |
gr.File(LICENSE_FILE if LICENSE_FILE.exists() else None, label="license file")
|
126 |
|
127 |
with gr.Tab("Robots • Sitemap • RSS"):
|
128 |
robots_box = gr.Textbox(value="", lines=10, label="robots.txt")
|
129 |
+
sitemap_box = gr.Textbox(value="", lines=18, label="sitemap.xml") # changed from gr.Code(..., language="xml")
|
130 |
+
rss_box = gr.Textbox(value="", lines=18, label="feed.xml") # changed from gr.Code(..., language="xml")
|
131 |
# load once on startup
|
132 |
r, s, feed = load_meta_files()
|
133 |
robots_box.value = r
|