mohonplugins's picture
Update app.py
60f27d1 verified
raw
history blame
453 Bytes
import gradio as gr
from PIL import Image
def process_image(img):
# Future: Convert image to Figma-compatible format (like SVG or .fig)
return "Image received. Converting to Figma design..."
demo = gr.Interface(
fn=process_image,
inputs=gr.Image(type="pil"),
outputs="text",
title="Image to Figma Layers",
description="Upload a PNG or JPEG image. This will be converted into editable Figma design layers."
)
demo.launch()