Update README.md
Browse files
README.md
CHANGED
@@ -18,10 +18,10 @@ config = model.config
|
|
18 |
tokenizer = AutoTokenizer.from_pretrained(hf_path, use_fast=False, model_max_length = config.tokenizer_model_max_length,padding_side = config.tokenizer_padding_side)
|
19 |
prompt="What are these?"
|
20 |
image_url="http://images.cocodataset.org/val2017/000000039769.jpg"
|
21 |
-
output_text, genertaion_time = model.chat(prompt=prompt, image=image_url,
|
22 |
|
23 |
-
print('model output:
|
24 |
-
print('runing time:
|
25 |
```
|
26 |
### Result
|
27 |
|
|
|
18 |
tokenizer = AutoTokenizer.from_pretrained(hf_path, use_fast=False, model_max_length = config.tokenizer_model_max_length,padding_side = config.tokenizer_padding_side)
|
19 |
prompt="What are these?"
|
20 |
image_url="http://images.cocodataset.org/val2017/000000039769.jpg"
|
21 |
+
output_text, genertaion_time = model.chat(prompt=prompt, image=image_url, tokenizer=tokenizer)
|
22 |
|
23 |
+
print('model output:', output_text)
|
24 |
+
print('runing time:', genertaion_time)
|
25 |
```
|
26 |
### Result
|
27 |
|