Image-to-Text
Transformers
Safetensors
English
llava
image-text-to-text
YouLiXiya commited on
Commit
8f90ff7
1 Parent(s): c85c10a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -46,6 +46,8 @@ image = Image.open(requests.get(url, stream=True).raw)
46
  prompt = "USER: <image>\nWhat does the label 15 represent? (1) lava (2) core (3) tunnel (4) ash cloud\nASSISTANT:"
47
 
48
  outputs = pipe(image, prompt=prompt, generate_kwargs={"max_new_tokens": 200})
 
 
49
  ```
50
 
51
  ### Using pure `transformers`:
 
46
  prompt = "USER: <image>\nWhat does the label 15 represent? (1) lava (2) core (3) tunnel (4) ash cloud\nASSISTANT:"
47
 
48
  outputs = pipe(image, prompt=prompt, generate_kwargs={"max_new_tokens": 200})
49
+ print(outputs)
50
+ {'generated_text': 'USER: \nWhat does the label 15 represent? (1) lava (2) core (3) tunnel (4) ash cloud\nASSISTANT: The label 15 represents lava, which is the type of rock that is formed from molten magma. '}
51
  ```
52
 
53
  ### Using pure `transformers`: