diffsketcher / README.md
jree423's picture
Update: Improve model card
a088a79 verified
|
raw
history blame
760 Bytes
metadata
pipeline_tag: text-to-image
tags:
  - text-to-image
  - svg
  - vector-graphics
license: mit

Vector Graphics Generation

This model generates vector graphics (SVG) from text prompts.

Usage

import requests

API_URL = "https://api-inference.huggingface.co/models/jree423/diffsketcher"
headers = {"Authorization": "Bearer YOUR_API_TOKEN"}

def query(prompt):
    response = requests.post(API_URL, headers=headers, json={"inputs": prompt})
    return response.content  # Returns the image directly

# Generate an image
with open("output.png", "wb") as f:
    f.write(query("a beautiful mountain landscape"))

Examples

  • "a beautiful mountain landscape"
  • "a red sports car"
  • "a portrait of a woman"
  • "a cat playing with a ball"