Initial commit: OmniSVG-Lite MVP before live-streaming work
- LM Studio client (httpx-based, OpenAI-compatible) - SVG validator (lxml, whitelist tags, no <script>/<foreignObject>/http refs) - PNG renderer (resvg-py primary, cairosvg fallback - no native cairo dep) - History (SQLite, tracks raw/validated/preview paths) - Gradio UI on 127.0.0.1:8788 with: * mode radio (icon/illustration) * n_candidates slider (default 1) * image upload for image-to-SVG * LM Studio URL/token inputs * model dropdown + refresh button - prompts/ with system_icon.txt, system_illustration.txt, few_shot_examples.txt - docs/spec.md, docs/design.md - 122 unit/integration tests passing
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
gradio==5.37.0
|
||||
httpx>=0.27,<0.29
|
||||
lxml>=5.0,<7
|
||||
# PNG-рендер: resvg-py — self-contained, не требует cairo.dll;
|
||||
# cairosvg остаётся опциональным fallback, если cairo уже установлена
|
||||
resvg-py>=0.3.0
|
||||
cairosvg>=2.7.1
|
||||
Pillow>=10.0
|
||||
openai>=1.40
|
||||
|
||||
# dev / test
|
||||
pytest>=8.0
|
||||
Reference in New Issue
Block a user