Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -327,13 +327,6 @@ def create_interface() -> gr.Blocks:
|
|
| 327 |
|
| 328 |
Apply the **complete formatting** of a blueprint document to the **content** of a source document β down to paragraph styles, page layout, margins, headers, footers, and footnotes.
|
| 329 |
Optionally run an **LLM style pass** that learns editorial conventions from the blueprint and re-formats source paragraphs and footnotes accordingly.
|
| 330 |
-
|
| 331 |
-
| What comes from the **blueprint** | What comes from the **source** |
|
| 332 |
-
|---|---|
|
| 333 |
-
| Page size, margins, section layout | All body text |
|
| 334 |
-
| All style definitions (fonts, indents, spacing) | Bold / italic / underline of runs |
|
| 335 |
-
| Headers & footers | Tables (with remapped styles) |
|
| 336 |
-
| Footnote formatting | Footnote text content |
|
| 337 |
""")
|
| 338 |
|
| 339 |
with gr.Row():
|
|
@@ -533,6 +526,15 @@ Leave **Provider** at `(none)` to skip the LLM pass entirely (fast, structural-o
|
|
| 533 |
# ββ Help / docs ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 534 |
with gr.Accordion("How it works", open=False):
|
| 535 |
gr.Markdown("""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 536 |
### Structural pipeline (always runs)
|
| 537 |
|
| 538 |
1. **Blueprint analysis** β reads every section (margins, page size, header/footer distance) and
|
|
@@ -622,4 +624,4 @@ if __name__ == "__main__":
|
|
| 622 |
server_name="0.0.0.0",
|
| 623 |
server_port=server_port,
|
| 624 |
share=False,
|
| 625 |
-
)
|
|
|
|
| 327 |
|
| 328 |
Apply the **complete formatting** of a blueprint document to the **content** of a source document β down to paragraph styles, page layout, margins, headers, footers, and footnotes.
|
| 329 |
Optionally run an **LLM style pass** that learns editorial conventions from the blueprint and re-formats source paragraphs and footnotes accordingly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
""")
|
| 331 |
|
| 332 |
with gr.Row():
|
|
|
|
| 526 |
# ββ Help / docs ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 527 |
with gr.Accordion("How it works", open=False):
|
| 528 |
gr.Markdown("""
|
| 529 |
+
### Data Sources
|
| 530 |
+
|
| 531 |
+
| What comes from the **blueprint** | What comes from the **source** |
|
| 532 |
+
|---|---|
|
| 533 |
+
| Page size, margins, section layout | All body text |
|
| 534 |
+
| All style definitions (fonts, indents, spacing) | Bold / italic / underline of runs |
|
| 535 |
+
| Headers & footers | Tables (with remapped styles) |
|
| 536 |
+
| Footnote formatting | Footnote text content |
|
| 537 |
+
|
| 538 |
### Structural pipeline (always runs)
|
| 539 |
|
| 540 |
1. **Blueprint analysis** β reads every section (margins, page size, header/footer distance) and
|
|
|
|
| 624 |
server_name="0.0.0.0",
|
| 625 |
server_port=server_port,
|
| 626 |
share=False,
|
| 627 |
+
)
|