Update README.md
Browse files
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`:
|