File size: 3,272 Bytes
83531fd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4e91fd4
 
 
d8bcea3
4e91fd4
 
8108875
 
0aa7c78
83531fd
0aa7c78
 
 
 
 
83531fd
4e91fd4
 
d67daa7
4e91fd4
bac0e7c
4e91fd4
 
 
bac0e7c
4e91fd4
 
 
 
 
 
 
bac0e7c
4e91fd4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8108875
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
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](https://github.com/microsoft/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](https://huggingface.co/mistralai/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](https://huggingface.co/deepseek-ai/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.