premanth15
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -2,13 +2,18 @@
|
|
2 |
tags:
|
3 |
- image-to-text
|
4 |
- image-captioning
|
|
|
|
|
5 |
license: apache-2.0
|
6 |
widget:
|
7 |
-
- src:
|
|
|
8 |
example_title: Savanna
|
9 |
-
- src:
|
|
|
10 |
example_title: Football Match
|
11 |
-
- src:
|
|
|
12 |
example_title: Airport
|
13 |
---
|
14 |
|
@@ -56,4 +61,4 @@ from transformers import pipeline
|
|
56 |
image_to_text = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
|
57 |
image_to_text("https://ankur3107.github.io/assets/images/image-captioning-example.png")
|
58 |
# [{'generated_text': 'a soccer game with a player jumping to catch the ball '}]
|
59 |
-
```
|
|
|
2 |
tags:
|
3 |
- image-to-text
|
4 |
- image-captioning
|
5 |
+
- Transformers
|
6 |
+
- vision-encoder-decoder
|
7 |
license: apache-2.0
|
8 |
widget:
|
9 |
+
- src: >-
|
10 |
+
https://huggingface.co/datasets/mishig/sample_images/resolve/main/savanna.jpg
|
11 |
example_title: Savanna
|
12 |
+
- src: >-
|
13 |
+
https://huggingface.co/datasets/mishig/sample_images/resolve/main/football-match.jpg
|
14 |
example_title: Football Match
|
15 |
+
- src: >-
|
16 |
+
https://huggingface.co/datasets/mishig/sample_images/resolve/main/airport.jpg
|
17 |
example_title: Airport
|
18 |
---
|
19 |
|
|
|
61 |
image_to_text = pipeline("image-to-text", model="nlpconnect/vit-gpt2-image-captioning")
|
62 |
image_to_text("https://ankur3107.github.io/assets/images/image-captioning-example.png")
|
63 |
# [{'generated_text': 'a soccer game with a player jumping to catch the ball '}]
|
64 |
+
```
|