myownskyW7
commited on
Commit
•
5dcef1d
1
Parent(s):
c80e3c5
Update README.md
Browse files
README.md
CHANGED
@@ -224,7 +224,7 @@ model.tokenizer = tokenizer
|
|
224 |
query = 'Generate the HTML code of this web image with Tailwind CSS.'
|
225 |
image = ['./examples/screenshot.jpg']
|
226 |
with torch.autocast(device_type='cuda', dtype=torch.float16):
|
227 |
-
response = model.
|
228 |
print(response)
|
229 |
```
|
230 |
See the [Screenshot to Webpage](https://github.com/InternLM/InternLM-XComposer/blob/main/examples/Screenshot-to-Webpage.html) results here.
|
|
|
224 |
query = 'Generate the HTML code of this web image with Tailwind CSS.'
|
225 |
image = ['./examples/screenshot.jpg']
|
226 |
with torch.autocast(device_type='cuda', dtype=torch.float16):
|
227 |
+
response = model.screen_2_webpage(query, image, seed=202, repetition_penalty=3.0)
|
228 |
print(response)
|
229 |
```
|
230 |
See the [Screenshot to Webpage](https://github.com/InternLM/InternLM-XComposer/blob/main/examples/Screenshot-to-Webpage.html) results here.
|