ZhenYang21 commited on
Commit
1472efd
·
verified ·
1 Parent(s): 1f7d809

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -50,18 +50,18 @@ messages = [
50
  "content": [
51
  {
52
  "type": "image",
53
- "url": "https://raw.githubusercontent.com/thu-coai/Glyph/main/assets/Little_Red_Riding_Hood.png"
54
  },
55
  {
56
  "type": "text",
57
- "text": "Who pretended to be Little Red Riding Hood's grandmother"
58
  }
59
  ],
60
  }
61
  ]
62
- processor = AutoProcessor.from_pretrained("zai-org/Glyph")
63
  model = AutoModelForImageTextToText.from_pretrained(
64
- pretrained_model_name_or_path="zai-org/Glyph",
65
  torch_dtype=torch.bfloat16,
66
  device_map="auto",
67
  )
 
50
  "content": [
51
  {
52
  "type": "image",
53
+ "url": "https://raw.githubusercontent.com/zheny2751-dotcom/UI2Code-N/main/assets/example.png"
54
  },
55
  {
56
  "type": "text",
57
+ "text": "Please generate the corresponding html code for the given UI screenshot."
58
  }
59
  ],
60
  }
61
  ]
62
+ processor = AutoProcessor.from_pretrained("zai-org/UI2Code_N")
63
  model = AutoModelForImageTextToText.from_pretrained(
64
+ pretrained_model_name_or_path="zai-org/UI2Code_N",
65
  torch_dtype=torch.bfloat16,
66
  device_map="auto",
67
  )