Image-to-Text
Transformers
Safetensors
English
llava
pretraining
YouLiXiya commited on
Commit
a8daa9b
1 Parent(s): 0536ce0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -2
README.md CHANGED
@@ -46,8 +46,6 @@ 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
- 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 the number of minutes since the earthquake occurred. '}
51
  ```
52
 
53
  ### 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
  ```
50
 
51
  ### Using pure `transformers`: