Datasets:

Modalities:
Image
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
WebSight / README.md
davanstrien's picture
davanstrien HF staff
Add synthetic tag
d8bcea3 verified
|
raw
history blame
3.27 kB
metadata
dataset_info:
  features:
    - name: image
      dtype: image
    - name: text
      dtype: string
  splits:
    - name: train
      num_bytes: 35386660486.65
      num_examples: 822987
  download_size: 31394170440
  dataset_size: 35386660486.65
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
license: cc-by-4.0
tags:
  - code
  - synthetic
size_categories:
  - 100K<n<1M
language:
  - en
pretty_name: WebSigh

Dataset Card for WebSight

Dataset Version

Alpha version, v0.1.

Dataset Description

This dataset consists of 823,000 HTML/CSS codes representing synthetically generated English websites, each accompanied by a corresponding screenshot (rendered with Playwright).

This dataset serves as a valuable resource for tasks such as generating UI codes from a screenshot. Notably, it is used for the training of the forthcoming Idefics-2 model, aiming at augmenting its proficiency in generating website code based on a provided screenshot.

Data Fields

An example of a sample appears as follows:

{
    'images': PIL.Image,
    'text': '<html>\n<style>\n{css}</style>\n{body}\n</html>',
}

where css is the CSS code, and body is the body of the HTML code. In other words, the CSS code is embedded directly within the HTML code, facilitating the straightforward training of a model.

Data Splits

There is only one split, train, that contains 822,987 images and codes.

Dataset Creation

This dataset was created using Mistral-7B-v0.1 to generate random website ideas with the prompt

Generate diverse website layout ideas for different companies, each with a unique design element.
Examples include: a car company site with a left column, a webpage footer with a centered logo.
Explore variations in colors, positions, and company fields.
Don't give any explanations or recognition that you have understood the request,
just give the list of 10 ideas, with a line break between each.

which were then passed to Deepseek-Coder-33b-Instruct with the prompt

Create a very SIMPLE and SHORT website with the following elements: {idea}
Be creative with the design, size, position of the elements, columns, etc...
Don't give any explanation, just the content of the HTML code `index.html` starting with `<!DOCTYPE html>`,
followed by the CSS code `styles.css` starting with `/* Global Styles */`.
Write real and short sentences for the paragraphs, don't use Lorem ipsum.
When you want to display an image, don't use <img> in the HTML, always display a colored rectangle instead. 

Following these steps, the HTML and CSS codes were extracted from the outputs of Deepseek-Coder and formatted into the structure '<html>\n<style>\n{css}</style>\n{body}\n</html>'.

Terms of Use

By using the dataset, you agree to comply with the original licenses of the source content as well as the dataset license (CC-BY-4.0). Additionally, if you use this dataset to train a Machine Learning model, you agree to disclose your use of the dataset when releasing the model or an ML application using the model.

Licensing Information

License CC-BY-4.0.