Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
license:
|
| 4 |
pipeline_tag: image-to-text
|
| 5 |
---
|
| 6 |
|
| 7 |
-
#
|
| 8 |
|
| 9 |
|
| 10 |
|
|
@@ -22,7 +22,7 @@ from transformers import BlipForConditionalGeneration, AutoProcessor
|
|
| 22 |
img_url = 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSQuFg4LTHUattLGPU0kLzYpBGHRtuqgJY8Gho3uZe_cg&s'
|
| 23 |
image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')
|
| 24 |
|
| 25 |
-
model = BlipForConditionalGeneration.from_pretrained("
|
| 26 |
processor = AutoProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
|
| 27 |
|
| 28 |
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
pipeline_tag: image-to-text
|
| 5 |
---
|
| 6 |
|
| 7 |
+
# FF-Image-to-recipe
|
| 8 |
|
| 9 |
|
| 10 |
|
|
|
|
| 22 |
img_url = 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSQuFg4LTHUattLGPU0kLzYpBGHRtuqgJY8Gho3uZe_cg&s'
|
| 23 |
image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')
|
| 24 |
|
| 25 |
+
model = BlipForConditionalGeneration.from_pretrained("workwithHasnain/FF-Image-to-Recipe").to(device)
|
| 26 |
processor = AutoProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
|
| 27 |
|
| 28 |
|