3 ms·
Here's a fun idea: ML model which takes an image of a UI (or mockup e.g. Figma) and recreates that UI in code. The ML model would infer callback/binding names,
by armchairhacker 4y ago
Here's a fun idea: ML model which takes an image of a UI (or mockup e.g. Figma) and recreates that UI in code. The ML model would infer callback/binding names, and any missing info like resize constraints, text / images / icons, buttons, etc.
- nirav72 4y agoAlready somewhat possible. At least the UI generation part. Someone over on the r/chatgpt had a post where they took a SVG exported layout of a web UI and pasted the SVG markup in chatgpt. The prompt just asked it to convert svg into html divs. It in return generated the necessary html and css. Which came out to be remarkably identical to the original SVG. Amazing. Maybe with a little effort, someone could even get it to generate the callback/bindings. EDIT: Screencap of the reddit post here: https://i.redd.it/x7yza5pgftna1.png https://i.redd.it/x7yza5pgftna1.png
- deleted 4y ago[deleted]