Update README.md
Browse files
README.md
CHANGED
|
@@ -50,18 +50,18 @@ messages = [
|
|
| 50 |
"content": [
|
| 51 |
{
|
| 52 |
"type": "image",
|
| 53 |
-
"url": "https://raw.githubusercontent.com/
|
| 54 |
},
|
| 55 |
{
|
| 56 |
"type": "text",
|
| 57 |
-
"text": "
|
| 58 |
}
|
| 59 |
],
|
| 60 |
}
|
| 61 |
]
|
| 62 |
-
processor = AutoProcessor.from_pretrained("zai-org/
|
| 63 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 64 |
-
pretrained_model_name_or_path="zai-org/
|
| 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 |
)
|