Skip to content
TheChatArchiveThe Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)Hugging Face OpenAssistant Conversations (oasst2)

How can I use AI to convert a website mockup (jpeg format) into html/css code?

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    How can I use AI to convert a website mockup (jpeg format) into html/css code?

  2. Assistant

    Researchers have developed methods for this. The paper "pix2code: Generating Code from a Graphical User Interface Screenshot" details their methodology, and their source code can be found on the author's github repository named "pix2code". You would need to attempt to get this code up and running locally, and replicate their results, at which point you can then give JPEGs to their program and generate HTML code.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.