Spaces:
Running on Zero
Running on Zero
Commit ·
e6e8e6d
1
Parent(s): 14d5143
Upgrade to SenseNova-U1-8B-MoT-Infographic-V2
Browse filesFiles changed (3)
- README.md+5-3
- __pycache__/app.cpython-312.pycAdded
- app.py+8-6
11 unmodified lines12131415161718192021222324252611 unmodified linesstartup_duration_timeout: 1h---# SenseNova-U1-8B-MoT-Infographic 📊Text-to-image **infographic generation** with[`sensenova/SenseNova-U1-8B-MoT-Infographic`](https://huggingface.co/sensenova/SenseNova-U1-8B-MoT-Infographic),running on ZeroGPU.The infographic-enhanced variant of SenseNova-U1 renders complex, text-denseinfographics across 100+ styles and layouts (charts, posters, knowledgeillustrations, arXiv-style pages) in Chinese and English.Generation uses the model's officially recommended infographic settings:`cfg_scale=4.0`, `cfg_norm="none"`, `timestep_shift=3.0`, `num_steps=50`.11 unmodified lines121314151617181920212223242526272811 unmodified linesstartup_duration_timeout: 1h---# SenseNova-U1-8B-MoT-Infographic-V2 📊Text-to-image **infographic generation** with[`sensenova/SenseNova-U1-8B-MoT-Infographic-V2`](https://huggingface.co/sensenova/SenseNova-U1-8B-MoT-Infographic-V2),running on ZeroGPU.The infographic-enhanced variant of SenseNova-U1 renders complex, text-denseinfographics across 100+ styles and layouts (charts, posters, knowledgeillustrations, arXiv-style pages) in Chinese and English. V2 improves small-textrendering (sharper text edges), complex dense-layout stability and overallaesthetics, and fixes the black-background issue.Generation uses the model's officially recommended infographic settings:`cfg_scale=4.0`, `cfg_norm="none"`, `timestep_shift=3.0`, `num_steps=50`.
12 unmodified lines1314151617181929 unmodified lines4950515253545550 unmodified lines10610710810911011111211311411511611711811912012 unmodified linesimport sensenova_u1from sensenova_u1 import check_checkpoint_compatibilityMODEL_ID = "sensenova/SenseNova-U1-8B-MoT-Infographic"NORM_MEAN = (0.5, 0.5, 0.5)NORM_STD = (0.5, 0.5, 0.5)29 unmodified linesreturn [Image.fromarray(a) for a in arr]print("[startup] loading SenseNova-U1-8B-MoT-Infographic (this may take a few minutes)...")sensenova_u1.set_attn_backend("auto")print(f"[startup] attn backend: {sensenova_u1.effective_attn_backend()!r}")50 unmodified lines.fillable { max-width: 1100px !important; }"""with gr.Blocks(title="SenseNova-U1-8B-MoT-Infographic") as demo:gr.Markdown("""# SenseNova-U1-8B-MoT-Infographic 📊Text-to-image **infographic generation** with**[SenseNova-U1-8B-MoT-Infographic](https://huggingface.co/sensenova/SenseNova-U1-8B-MoT-Infographic)** — a unifiedunderstanding + flow-matching model tuned for complex, text-dense infographics(charts, posters, knowledge illustrations) in English and Chinese.""")12 unmodified lines1314151617181929 unmodified lines4950515253545550 unmodified lines10610710810911011111211311411511611711811912012112212 unmodified linesimport sensenova_u1from sensenova_u1 import check_checkpoint_compatibilityMODEL_ID = "sensenova/SenseNova-U1-8B-MoT-Infographic-V2"NORM_MEAN = (0.5, 0.5, 0.5)NORM_STD = (0.5, 0.5, 0.5)29 unmodified linesreturn [Image.fromarray(a) for a in arr]print("[startup] loading SenseNova-U1-8B-MoT-Infographic-V2 (this may take a few minutes)...")sensenova_u1.set_attn_backend("auto")print(f"[startup] attn backend: {sensenova_u1.effective_attn_backend()!r}")50 unmodified lines.fillable { max-width: 1100px !important; }"""with gr.Blocks(title="SenseNova-U1-8B-MoT-Infographic-V2") as demo:gr.Markdown("""# SenseNova-U1-8B-MoT-Infographic-V2 📊Text-to-image **infographic generation** with**[SenseNova-U1-8B-MoT-Infographic-V2](https://huggingface.co/sensenova/SenseNova-U1-8B-MoT-Infographic-V2)** — a unifiedunderstanding + flow-matching model tuned for complex, text-dense infographics(charts, posters, knowledge illustrations) in English and Chinese. V2 improvessmall-text sharpness, dense-layout stability and aesthetics, and fixes theblack-background issue.""")
README.md+5-3
__pycache__/app.cpython-312.pycAdded
app.py+8-6