Skip to content

tuoi1501/personal-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Odoo 18 Logo Generator (Standalone Web App)

Standalone web-app (Streamlit) to generate an Odoo-18-inspired logo in both:

  • SVG (vector, transparent background)
  • PNG (transparent background, rasterized from SVG)

Features

  • Upload images (png/jpg/webp) or documents (pdf/docx/txt)
  • Uses OpenAI Vision to extract keywords + mapping
  • Uses your prompt to generate a strict SVG (sanitized for safety)
  • Rasterizes SVG to transparent PNG
  • Downloads SVG/PNG

Tech

  • Python + Streamlit
  • OpenAI API
  • PDF -> image (first page) via pymupdf
  • DOCX -> text via python-docx
  • SVG -> PNG via cairosvg

Setup

cd logo_generator_app
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# set env
cp .env.example .env

Edit .env (at least):

  • OPENAI_API_KEY
  • OPENAI_MODEL (optional, default used by app)

Run

streamlit run app.py --server.port 8501

Open the printed URL (usually http://localhost:8501).

Notes / Limits

  • For PDFs, the app renders only the first page for vision.
  • For DOCX/TXT, the app does text extraction (no vision) and still uses the same flow.
  • If the model outputs invalid SVG, the app will raise an error (current version validates strictly).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages